Live data from Hacker News

Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

github.com

21–30 of 31 posts

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#21

Earlier quoted context omitted.

This is awesome. Since Steamboat willy is officially in the public domain as of today..... So, it installs in windows powershell https://i.imgur.com/1Yt1V5v.png - but attempting to run it just pops up with "what program do you want to open this with" - I tried it in powershell, Anaconda Python CMD, regular CMD/run as admin - all the same result. How troubleshoot? Could I run it in a docker more easily? Running this o…

I'm glad you got it working. I'll probably work on a Docker installer in the future. Normally, in Windows, the best way to run it in WSL. There is an issue with windows-curses that durdraw doesn't like, and keeps it from running natively in Windows (in powershell, etc) without WSL. Yes, a tablet or phone version would need to be re-designed to be touch friendly, naturally. Thanks for checking it out. :)

I have WSL installed, I gues I dont know how to invoke durdraw with WSL.

Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option?

I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being an in terminal app?

https://i.imgur.com/vdf8fEv.png

--

Edit - I found it, but setting -W and -H dont work, so I just changed the settings in the .py

EDIT: It was -m for the win.

I doubled the default, will it have issues?

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#22

Earlier quoted context omitted.

I'm glad you got it working. I'll probably work on a Docker installer in the future. Normally, in Windows, the best way to run it in WSL. There is an issue with windows-curses that durdraw doesn't like, and keeps it from running natively in Windows (in powershell, etc) without WSL. Yes, a tablet or phone version would need to be re-designed to be touch friendly, naturally. Thanks for checking it out. :)

I have WSL installed, I gues I dont know how to invoke durdraw with WSL. Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option? I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being…

There are currently 3 ways to set the canvas size.

1: Use the command line options -W and -H or --width and --height to set the numbers of columns and lines. run "durdraw --help" for more command-line options.

2: Check the help screen and scroll down to the "Canvas Size" section. There are keys for increasing and decreasing the canvas size.

3: You can also use the -m or --max command-line option to start the canvas size at the maximum size for your terminal window.

I will continue to work on the canvas size stuff an making it easier to customize.

I like your idea of optionally centering the canvas in the screen. Thanks for the suggestion. I might do that in a future version. (Same with the .ini file.)

You might also consider increasing your terminal font size so the canvas is not so small, and moving it around to line up with the image in the back.

I'd have to revisit it to make sure it still works well, but it tries to support a transparent terminal by default, with the --blackbg option to force a black background in the canvas.

Edit: Canvas resize keys are: esc-" insert line esc-: delete line esc-> insert column esc-< delete column

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#23

Earlier quoted context omitted.

I'm glad you got it working. I'll probably work on a Docker installer in the future. Normally, in Windows, the best way to run it in WSL. There is an issue with windows-curses that durdraw doesn't like, and keeps it from running natively in Windows (in powershell, etc) without WSL. Yes, a tablet or phone version would need to be re-designed to be touch friendly, naturally. Thanks for checking it out. :)

I have WSL installed, I gues I dont know how to invoke durdraw with WSL. Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option? I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being…

Oh, for WSL... You would use something like Windows terminal, and start an Ubuntu (WSL) terminal session from there. It will act similar to a Linux VM terminal, and you can download, install and run Durdraw from there.

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#24

Earlier quoted context omitted.

I have WSL installed, I gues I dont know how to invoke durdraw with WSL. Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option? I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being…

Oh, for WSL... You would use something like Windows terminal, and start an Ubuntu (WSL) terminal session from there. It will act similar to a Linux VM terminal, and you can download, install and run Durdraw from there.

Ill try all these! Thanks

Im an idiot, I couldnt launch WSL with my ubuntu vm running. No resources. Ill try that without VMs

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#25
I wonder how much of the ANSI spec we can use and still call it ANSI art. There are many sequences that were not supported by ANSI.SYS that are part of the standard, some of which are supported by modern terminals. Sadly, Tektronix graphics and ReGIS never made to the spec. Tools like `htop` and `glances` would look a lot more awesome with that.

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#26

Earlier quoted context omitted.

I'm glad you got it working. I'll probably work on a Docker installer in the future. Normally, in Windows, the best way to run it in WSL. There is an issue with windows-curses that durdraw doesn't like, and keeps it from running natively in Windows (in powershell, etc) without WSL. Yes, a tablet or phone version would need to be re-designed to be touch friendly, naturally. Thanks for checking it out. :)

I have WSL installed, I gues I dont know how to invoke durdraw with WSL. Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option? I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being…

I'll look into -W and -H. It's probably a bug. Thanks for letting me know.

I am not sure what you mean by "doubled the default" exactly.

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#27

Earlier quoted context omitted.

I have WSL installed, I gues I dont know how to invoke durdraw with WSL. Question - can you change the canvas size/draw area? I'd like that to be in the INI default config as an option? I want to have my terminal transparent for tracing an image in the background, but the draw area is in the top left and small, can the draw area be centered in window and configurable in size? or is the limitation of actually it being…

I'll look into -W and -H. It's probably a bug. Thanks for letting me know. I am not sure what you mean by "doubled the default" exactly.

in the main.py i changes 80 to 160 and 24 - 1 to 49 -1

but it was the -m I was looking for. -H -W didnt work on the command line, It looked like you had it set to 80 if -W was -H was >80 it sets it to 80?

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#29
post #25

I wonder how much of the ANSI spec we can use and still call it ANSI art. There are many sequences that were not supported by ANSI.SYS that are part of the standard, some of which are supported by modern terminals. Sadly, Tektronix graphics and ReGIS never made to the spec. Tools like `htop` and `glances` would look a lot more awesome with that.

I think the limitations of ansi.sys became the standard because it's the implementation that everyone had access to and could reference, not because it is the exact full set-in-stone canonical specification laid down by the ANSI standards committee overlords.

I think something similar applies today. Most people are using xterms or terminals that implement a large, fairly standard set of xterm and ansi escape codes (including things like Xterm 256 color, Mouse reporting, maybe RGB colors, Unicode). So that's what "modern" ANSI art can and maybe should target. At least raise the standard for terminal art beyond the 1980s IBM-PC to modern, widely implemented standards.

Then there is the problem of there being hundreds of ANSI editors and viewers that expect 16 color Code Page 437 art. Moebius (the ANSI editor) sidesteps this problem by using .utf8.ans to imply a Utf-8 ANSI, which also implies Xterm compatible escape codes (like 256 color). Right now Durdraw does not implement any file suggestions for saving, but in the future I might do that.

Re: Show HN: Durdraw – a modern ANSI art editor for modern Unix terminals

#30
Chapter 4 - http://bitsavers.org/pdf/dec/terminal/gigi/EK-VK100-TM-001_V...

VK100 (aka GIGI) lets you do ReGIS graphics and optionally download BASIC programs to run on the client. It implements VT52 (ANSI) by default, but you could easily extend it to support full VT102 or VT400 codes too.

Post reply on HN