Linux command
durdraw 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Launch
durdraw
Open a file
durdraw [filename.dur]
Create a new canvas
durdraw -W [80] -H [25]
Use the maximum canvas size
durdraw -m
Play a .dur animation
durdraw -p [animation.dur]
Loop an animation
durdraw -p -x [3] [animation.dur]
Force 16- or 256-color mode
durdraw --256color
Export loaded art to .ansi
durdraw --export-ansi [input.dur]
说明
durdraw is a versatile curses-based ASCII, ANSI, and Unicode art editor for drawing in Linux, Unix, and macOS terminals. It supports 16- and 256-color palettes, CP437 and Unicode, customizable themes, mouse input, and frame-by-frame animation with adjustable delay. Files are saved in durdraw's native JSON-based `.dur` format, which preserves animation frames and metadata. Static art can be exported to `.ansi` for sharing on traditional ANSI art boards. Animations can be played back in the terminal with durdraw -p or the durview companion tool.
参数
- -p, --play
- Play .dur file(s) then exit.
- -x, --times _N_
- Play _N_ times (requires -p).
- --startup
- Show the startup screen.
- -w, --wait
- Pause on the startup screen.
- --256color
- Force 256-color mode.
- --16color
- Force 16-color mode.
- -b, --blackbg
- Use a black background instead of the terminal default.
- -W, --width _N_
- Set canvas width.
- -H, --height _N_
- Set canvas height.
- -m, --max
- Use the largest canvas that fits the terminal.
- --nomouse
- Disable mouse support.
- --cursor _STYLE_
- Cursor style: block, underscore, or pipe.
- --notheme
- Disable theme support.
- --theme _FILE_
- Load a custom theme file.
- --cp437
- Use Code Page 437 encoding (beta).
- --export-ansi
- Export loaded art to an .ansi file and exit.
- -u, --undosize _N_
- Number of undo history states (default: 100).
- -V, --version
- Show version and exit.
- -h, --help
- Display help and exit.
FAQ
What is the durdraw command used for?
durdraw is a versatile curses-based ASCII, ANSI, and Unicode art editor for drawing in Linux, Unix, and macOS terminals. It supports 16- and 256-color palettes, CP437 and Unicode, customizable themes, mouse input, and frame-by-frame animation with adjustable delay. Files are saved in durdraw's native JSON-based `.dur` format, which preserves animation frames and metadata. Static art can be exported to `.ansi` for sharing on traditional ANSI art boards. Animations can be played back in the terminal with durdraw -p or the durview companion tool.
How do I run a basic durdraw example?
Run `durdraw` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --play do in durdraw?
Play .dur file(s) then exit.