cpm
cpm copied to clipboard
Need whitespace around password
When double-clicking the password in cpm in a "urxvt" terminal, the clipboard will include the border character as well.
Today, the password appears somewhat like this:
+-------------
|yourpassword
|
Could this be changed to include space above and beside the password like this?
+--------------
|
| yourpassword
|
sure, why not? slating this for 0.27
actually, I took a long hard look at this. turns out CDK draws the list with the string flush to the border, no way of specifying any padding. I came up with a hack that injects a space in front of all list entries, but this is a sad and fugly hack at best.
A new ambitious plan to migrate away from CDK and onto a new terminal drawing program has formed.
curses ncurses...
Or cwidget?
CDK is built on curses, we would need ncursesw which CDK doesn't support. Best option might be to rip out curses entirely and build things on top of nchanterm, which is a minimal console drawing toolkit.
@ssm I'm using rxvt-unicode-256color, and I'm working around this issue by adding to .Xdefaults:
# don't select box-drawing characters on double-click
# (defaults plus vertical box)
URxvt.cutchars: BACKSLASH `"'&()*,;<=>?@[]^{|}│
The defaults are taken from man rxvt-unicode.