2015-06-16 13 views
8

Io uso emacs solo per pochi giorni. Ora voglio usare emacs per disegnare un'immagine ascii, cerco che la modalità artista possa farlo. Ma non so come usare questa modalità in nessun ambiente GUI.Emacs artist-mode (no gui)

+1

Hai provato 'M-x descrivere-mode' (o' M') quando in 'artista-mode'? – npostavs

+0

un comando in modalità artista che conosco, ad esempio, C-c C-a P è poly-line, quando inserisco questo comando, emacs status line cambia in "Picture: right Artist/s-poly Server". Ma non so come fare una linea di stratagemma –

+0

linux x-window, posso usare il mouse per disegnare. Ma lavoro spesso usando ssh al server per funzionare, non è un gui. –

risposta

8

Per disegnare una linea poli, C-c C-a P per entrare nella modalità poli-linea, RET (artist-key-set-point) per avviare la linea, punti con movimento normale spostare comandi, quindi premere RET per terminare il segmento e iniziarne una nuova, C-u RET per il segmento finale.

Da artist-mode docstring:

Drawing with keys 

RET  Does one of the following: 
     For lines/rectangles/squares: sets the first/second endpoint 
     For poly-lines: sets a point (use C-u RET to set last point) 
     When erase characters: toggles erasing 
     When cutting/copying: Sets first/last endpoint of rect/square 
     When pasting: Pastes 

C-c C-a C-o Selects what to draw 

Move around with C-n, C-p, C-f and C-b. 

C-c C-a C-f Sets the character to use when filling 
C-c C-a C-l Sets the character to use when drawing 
C-c C-a C-e Sets the character to use when erasing 
C-c C-a C-r Toggles rubber-banding 
C-c C-a C-t Toggles trimming of line-endings 
C-c C-a C-s Toggles borders on drawn shapes 


Arrows 

<  Sets/unsets an arrow at the beginning 
     of the line/poly-line 

>  Sets/unsets an arrow at the end 
     of the line/poly-line 
1

Trovo un modo per far funzionare il modo artista con il mouse quando ssh al server.

passo: 1.artist-mode 2.xterm-topo-mode (confermare le emacs aprire questa modalità) di comando pareggio 3.Some, quindi disegnare con il mouse

Uno come so può semplicemente utilizzare la tastiera senza mouse può dirmi.