Emacs艺术家模式(没有gui)

jim*_*ing 9 emacs

我只使用emacs几天.现在我想使用emacs绘制ascii图片,我搜索艺术家模式可以做到这一点.但我不知道如何在没有gui的环境中使用这种模式.

npo*_*avs 10

要绘制多边形线,C-c C-a P输入多线模式,RET(artist-key-set-point)开始线,使用正常移动命令移动点,然后RET再次点击以结束线段并C-u RET为最终线段开始一个新线段.

来自artist-modedocstring:

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
Run Code Online (Sandbox Code Playgroud)