Scroll to navigation

DURDRAW(1) User Commands DURDRAW(1)

NAME

durdraw - versatile ASCII and ANSI Art text editor for drawing in terminal

SYNOPSIS

durdraw [-h] [-p PLAY [PLAY ...] [-x TIMES] [-d DELAYEXIT] [--256color | --16color] [-b] [-W WIDTH] [-H HEIGHT] [-m] [--nomouse] [--cursor CURSOR] [--notheme] [--theme THEME] [--cp437] [--export-ansi] [-u UNDOSIZE] [-V] [--wrap WRAP] [filename]

DESCRIPTION

Durdraw is an ASCII, ANSI and Unicode art editor for UNIX-like systems (Linux, macOS, etc). It runs in modern Utf-8 terminals and supports frame-based animation, custom themes, 256 and 16 color modes, terminal mouse input, DOS ANSI art viewing, CP437 and Unicode mixing and conversion, HTML output, mIRC color output, and other interesting features.

Durdraw is heavily inspired by classic ANSI editing software for MS-DOS and Windows, such as TheDraw, Aciddraw and Pablodraw, but with a modern Unix twist.

For in-program help, press esc-h (see KEY BINDINGS below).

OPTIONS

positional arguments:

.dur or ascii file to load

options:

show this help message and exit
Just play .dur file or files, then exit
Play X number of times (requires -p)
Wait X seconds after playback before exiting (requires -p)
--256color
Try 256 color mode
--16color
Try 16 color mode
Use a black background color instead of terminal default
Set canvas width
Set canvas height
Maximum canvas size for terminal (overrides -W and -H)
Number of columns to wrap lines at when loading ASCII and ANSI files (default 80)
Disable mouse support
Cursor mode (block, underscore, or pipe)
Disable theme support (use default theme)
Load a custom theme file
Display extended characters on the screen using Code Page 437 (IBM-PC/MS-DOS) encoding instead of Utf-8. (Requires CP437 capable terminal and font) (beta)
Export loaded art to an .ansi file and exit
Set the number of undo history states - default is 100. More requires more RAM, less saves RAM.
Show version number and exit

USER INTERFACE

Durdraw works like a text editor. Use the arrow keys to move the cursor, and use the keyboard to type letters, numbers, and punctuation to draw ASCII art.

Pressing Tab switches between the canvas and the color picker.

Special (Unicode) characters, shown on the bottom line of the screen, can be entered using F1, F2, F3, etc. Alternatively, use esc-1, esc-2, etc.

To change character sets, type esc-S , or click Menu (esc-m), then Edit, then Character Sets. Then use the arrow keys (or type to search) and Enter to pick a Unicode Block or a Durdraw character set. Use esc-[ and esc-] to cycle through the groups of characters in the current set.

In some terminals, alt can be used instead of esc.

MOUSE

The mouse can be used to click menus and menu items, click on colors in the color picker, scroll through menus and colors with the wheel, and draw, paint, color or erase directly on the canvas, depending on the active mouse tool.

When Durdraw first launches, clicking on the canvas moves the cursor. The Mouse Tools menu (esc-t) shows the currently selected mouse tool, which starts out as Move. To change the mouse function (for example, to Draw), click the Mouse Tools menu (esc-t) and select the desired function.

The available mouse tools are:

Moves the cursor.
Draws using the selected draw/fill character.
Paints using a brush (see BRUSHES below).
Changes a character's color without changing the character itself.
Erases a character.
Picks up the color from a character.
Animation Brush
Paints using animation (see ANIMATION BRUSHES below).

KEY BINDINGS

Durdraw's keyboard commands are entered as an esc prefix followed by a key (i.e. press and release Esc, then press the next key), unless noted otherwise. In some terminals alt can be used as the prefix instead of esc.

Art editing

Insert special character.
Same as F1 through F10.
Insert the current draw character.
Open the color picker.
Next foreground color.
Previous foreground color.
Change color, moving up the palette.
Change color, moving down the palette.
Insert line.
Delete line.
Insert column.
Delete column.
Next character group.
Previous character group.
Change character set.
Replace color.
Eyedrop (pick up color).
Pick up character.
Color character.
Select an area for copy.
Select an area for copy. (Mark selection)
Paste.
Toggle insert mode.

Animation

Next frame.
Previous frame.
Start or stop playback.
Clone frame.
Append empty frame.
Delete frame.
Set frame delay.
Play faster.
Play slower.
Set playback/edit range.
Go to frame number.
Move frame.
Shift frames left.
Shift frames right.
Previous Animation Brush Frame
Next Animation Brush Frame

File operations

New / clear canvas.
Open.
Save.

Canvas size

Insert canvas line.
Delete canvas line.
Insert canvas column.
Delete canvas column.

UI and miscellaneous

Main menu.
Animation menu.
Mouse tools menu.
Undo.
Redo.
View mode.
File / canvas info.
Character inspector.
Search / find string.
Redraw screen.
Show help.
Quit.

BRUSHES

To make a brush, select an area with shift-arrows or esc-K, then press b. To paint with it, open the Mouse Tools menu (esc-t) and select Paint (P). You can then use the mouse to paint with your custom brush.

ANIMATION BRUSHES

To make an animation brush, select an area with shift-arrows or esc-K, then press b for "Make Brush," followed by a for "Animation Brush." To paint with it, open the Mouse Tools menu (esc-t) and select Animation Brush (A).

You can then use the mouse to "paint" animation frames: clicking on the canvas paints the current frame of the animation brush onto the canvas, then both the animation brush and the canvas advance to their next frame.

In loop mode , when you click or drag in the canvas, the current frame of the Animation Brush gets painted to the canvas, then the animation brush and canvas both advance to their next frames.

In clone mode , when you click or drag in the canvas, the current frame of the canvas is cloned to the next frame, then the current frame f the Animation Brush is painted to the canvas, and the animation brush and canvas both advance to the next frame.

FILES

*.dur
Durdraw's native animation format, loaded and saved with esc-o and esc-s.
*.durf
Durfetch files
~/.durdraw/themes/*.dtheme.ini
Durdraw theme files
/etc/durdraw/durdraw.conf
Global configuration file.
~/.durdraw/durdraw.conf
User configuration file.
$XDG_CONFIG_HOME/durdraw/durdraw.conf
User configuration file.

SEE ALSO

durfetch, durview

AUTHOR

Durdraw is primarily written by Sam Foster <samfoster@gmail.com>. For a full list of contributors, please see the Github page: https://github.com/durdraw/durdraw

September 2026 durdraw 0.31.0