Migrating from urxvt to hterm

207 views
Skip to first unread message

tpadi...@gmail.com

unread,
Sep 16, 2013, 9:12:56 AM9/16/13
to chromiu...@chromium.org
Hi

First of all, thanks for this amazing project, having a powerful xterm-like terminal as a chrome extension is a brilliant idea.

I currently use vcxsrv(nice xorg port for windows) with urxvt  for interacting my development virtualbox. I have been trying to migrate all my urxvt settings to hterm but got stuck on a few problems:

- Font doesn't look sharp and also appear thicker than in urxvt(like it was bold)
- Integration with x11 selection. I currently use the 'xsel' command to access to the windows clipboard through vcxsrv(I use it with tmux and vim). I know reading from clipboard is a security risk but this is not a problem when using a virtual machine in the local computer.(Though I can probably work around this issue using the terminal escape sequences which write to the clipboard and pasting to the terminal only when in insert mode)
- Not italic escape sequences. This is nice for highlighting comments in vim.
- No clickable url links.

I have attached two screenshots comparing the same tmux session from both terminals.  I believe the better font sharpness issue may be related to the last settings in my xresources file  used to configure urxvt but I'm unsure on how to convert it to hterm.

Any help will be appreciated. Thanks

Thiago.





hterm.png
urxvt.png

Robert Ginda

unread,
Sep 16, 2013, 1:18:17 PM9/16/13
to tpadi...@gmail.com, chromium-hterm
On Mon, Sep 16, 2013 at 6:12 AM, <tpadi...@gmail.com> wrote:
Hi

First of all, thanks for this amazing project, having a powerful xterm-like terminal as a chrome extension is a brilliant idea.


Thanks, glad you like it.
 
I currently use vcxsrv(nice xorg port for windows) with urxvt  for interacting my development virtualbox. I have been trying to migrate all my urxvt settings to hterm but got stuck on a few problems:

- Font doesn't look sharp and also appear thicker than in urxvt(like it was bold)

Have you set Secure Shell to use "Ubuntu Mono" at 22px?  If so, you might try changing the 'font-smoothing' preference to 'none' or 'subpixel-antialiased'.  If not, check out Secure Shell's "Options" link in chrome://extensions.

If none of that fixes it, it's down to how Chrome renders fonts.  If it really bugs you, you might try changing font-family or font-size to something that Chrome renders more to your liking.

- Integration with x11 selection. I currently use the 'xsel' command to access to the windows clipboard through vcxsrv(I use it with tmux and vim). I know reading from clipboard is a security risk but this is not a problem when using a virtual machine in the local computer.(Though I can probably work around this issue using the terminal escape sequences which write to the clipboard and pasting to the terminal only when in insert mode)

Ctrl-Shift-V will paste from the windows clipboard.  There isn't currently an escape sequence to read the clipboard, so that's your only option.

You can write to the system clipboard with OSC 52.  See these scripts for some examples.  Tmux eats OSC 52, so you'll have to take it up with them if that gets in your way.
 
- Not italic escape sequences. This is nice for highlighting comments in vim.

There are no standard escape sequences for italics, but hterm treats underline (ESC [ 5 m) as italic.  You will probably need to be using a font that supports italics.

- No clickable url links.


Double click on a url and hterm will select the whole thing, even if it spans multiple lines.  It will also automatically copy the url to the clipboard (as it does with all selections by default).  Then you can focus a browser window and paste in the url or drag the selected text to a target browser window.


Rob.

I have attached two screenshots comparing the same tmux session from both terminals.  I believe the better font sharpness issue may be related to the last settings in my xresources file  used to configure urxvt but I'm unsure on how to convert it to hterm.

Any help will be appreciated. Thanks

Thiago.





--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/6515fb16-0a64-4b70-a313-3c36adbdef1c%40chromium.org.

sun...@gmail.com

unread,
Apr 12, 2014, 12:19:56 PM4/12/14
to chromiu...@chromium.org, tpadi...@gmail.com
On Monday, September 16, 2013 10:18:17 AM UTC-7, Robert Ginda wrote:
You can write to the system clipboard with OSC 52.  See these scripts for some examples.  Tmux eats OSC 52, so you'll have to take it up with them if that gets in your way.

That link is broken.  Those scripts have since moved to a new location:

Reply all
Reply to author
Forward
0 new messages