cpm icon indicating copy to clipboard operation
cpm copied to clipboard

Need whitespace around password

Open ssm opened this issue 13 years ago • 5 comments

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
|

ssm avatar Dec 20 '11 12:12 ssm

sure, why not? slating this for 0.27

comotion avatar Dec 20 '11 15:12 comotion

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.

comotion avatar Apr 26 '12 18:04 comotion

curses ncurses...

Or cwidget?

ssm avatar Apr 27 '12 09:04 ssm

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.

comotion avatar Apr 29 '12 10:04 comotion

@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.

smlx avatar Oct 01 '14 14:10 smlx