From dfc936ac5934e4c0f38ef4248c8f7d20d58b285b Mon Sep 17 00:00:00 2001 From: Randall Mason Date: Sat, 21 Sep 2019 14:47:27 -0500 Subject: [PATCH] Add note about cursor position and ctrl-0 --- ChromeOS-Terminal.md | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/ChromeOS-Terminal.md b/ChromeOS-Terminal.md index 7d30978..64ec13a 100644 --- a/ChromeOS-Terminal.md +++ b/ChromeOS-Terminal.md @@ -20,4 +20,30 @@ In the terminal: font-family: 'Fira Code'; } ``` -4. Restart your terminals \ No newline at end of file +4. Restart your terminals + +- Note, there is a bug where you need to push `ctrl-0` to get the cursor to input text at the right place. The following settings fix that bug, but the cursor is still in the wrong place: +``` +@font-face{ + font-family: 'Fira Code'; + src: url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/eot/FiraCode-Regular.eot') format('embedded-opentype'), + url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff2/FiraCode-Regular.woff2') format('woff2'), + url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/woff/FiraCode-Regular.woff') format('woff'), + url('https://raw.githubusercontent.com/tonsky/FiraCode/master/distr/ttf/FiraCode-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + +x-screen { + --hterm-charsize-height: calc(1em + 5px); + --hterm-charsize-width: calc(1em * 0.6); +} + +* { + -webkit-font-feature-settings: "liga" on, "calt" on; + -webkit-font-smoothing: antialiased; + text-rendering: optimizeLegibility; + font-family: 'Fira Code'; +} +``` +If there are any ideas on how to fix this completely, please add notes on the bug report: https://github.com/tonsky/FiraCode/pull/750 \ No newline at end of file