Character map overrides

391 views
Skip to first unread message

Jeff Ober

unread,
May 2, 2015, 5:15:20 PM5/2/15
to chromiu...@chromium.org
I see that there is a preferences field for character-map-overrides. What is the format of this field? I am hoping I can use it to map caps/search to escape while within the app, preserving the search/launcher binding elsewhere.

Brad Town

unread,
May 4, 2015, 1:09:22 PM5/4/15
to Jeff Ober, chromiu...@chromium.org
It's not for changing the behavior of the keyboard. It's for changing what is displayed when using the alternate character set.

character-map-overrides is specified as an object. It is a sparse array, where each property is the character set code and the value is an object that is a sparse array itself. In that sparse array, each property is the received character and the value is the displayed character.

For example, specifying the following:

{"0":{"+":"\u2192",",":"\u2190","-":"\u2191",".":"\u2193","0":"\u2588","h":"\u2591","i":"\u256c","~":"\u2022"}}

This would modify character set "0" and add codes for "+", ",", "-", "." (arrows pointing right, left, up, and down, respectively), and "0" (solid square block). It would also change the codes for "h" to a light shade (board of squares), "i" to box drawings double vertical and horizontal (lantern symbol), and "~" to a bullet.

This is useful for things like adding codes for the alternate character set in ncurses. The terminfo man page (http://manpages.ubuntu.com/manpages/trusty/man5/terminfo.5.htmlshows the glyphs supported by ncurses (search for "Line Graphics" on the page).


On Sat, May 2, 2015 at 2:15 PM, Jeff Ober <jo...@ziprecruiter.com> wrote:
I see that there is a preferences field for character-map-overrides. What is the format of this field? I am hoping I can use it to map caps/search to escape while within the app, preserving the search/launcher binding elsewhere.

--
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/6a30d196-c1e7-4a13-a340-445b140ba6f2%40chromium.org.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.

Jeff Ober

unread,
May 4, 2015, 1:32:13 PM5/4/15
to Brad Town, chromiu...@chromium.org
Ok, understood. Is it possible to get a setting to alter the search key behavior? There is already a setting make the media keys act as fkeys. It would mean a lot to we vim users :)
--
Jeff Ober

Old programmers don't die; they just parse on...

Mike Frysinger

unread,
May 5, 2015, 12:03:37 AM5/5/15
to Jeff Ober, Brad Town, chromium-hterm
if you're using CrOS, doesn't the system settings have an option to change the search key behavior ?
-mike

Jeff Ober

unread,
May 5, 2015, 8:28:30 AM5/5/15
to Mike Frysinger, Brad Town, chromium-hterm
It does indeed. I was hoping to retain the search functionality in the rest of the system and have it remapped only in the terminal. That way I can retain the "super" key functionality while still having caps:escape in the terminal.

tlav...@google.com

unread,
Sep 1, 2016, 5:02:59 PM9/1/16
to chromium-hterm, vap...@chromium.org, tow...@google.com
Jeff, did you figure out a solution?

gamingsk...@gmail.com

unread,
Aug 29, 2019, 2:05:56 AM8/29/19
to chromium-hterm, jo...@ziprecruiter.com
How do I use the alternate character set?
To unsubscribe from this group and stop receiving emails from it, send an email to chromiu...@chromium.org.

Mike Frysinger

unread,
Aug 29, 2019, 2:06:59 AM8/29/19
to gamingsk...@gmail.com, chromium-hterm, Jeff Ober
there is no reason to.  stick to Unicode/UTF-8 for everything.
-mike

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/67ce665f-49dd-4e19-af4c-a1bc80a1ce5e%40chromium.org.

gamingsk...@gmail.com

unread,
Aug 29, 2019, 2:03:47 PM8/29/19
to chromium-hterm, gamingsk...@gmail.com, jo...@ziprecruiter.com
Brad said it the character map override is for changing what characters are displayed when using an alternate character set.  Are you saying I don't have to use an alternate character set to see my changes?  Because I can't see them. 
I used the following code, because I wanted everything to show as capitalized, but it didn't change anything.
{
  "0": {
    "a": "A",
    "b": "B",
    "c": "C",
    "d": "D",
    "e": "E",
    "f": "F",
    "g": "G",
    "h": "H",
    "i": "I",
    "j": "J",
    "k": "K",
    "l": "L",
    "m": "M",
    "n": "N",
    "o": "O",
    "p": "P",
    "q": "Q",
    "r": "R",
    "s": "S",
    "t": "T",
    "u": "U",
    "v": "V",
    "w": "W",
    "x": "X",
    "y": "Y",
    "z": "Z"
  }
}
The idea is to display all letters as uppercase, but it does not change the shell.  Maybe I have to edit the environment variables?
To unsubscribe from this group and stop receiving emails from it, send an email to chromiu...@chromium.org.

Mike Frysinger

unread,
Aug 29, 2019, 2:06:58 PM8/29/19
to gamingsk...@gmail.com, chromium-hterm, Jeff Ober
i'm saying don't use ACS.  it's a legacy concept that needs to die asap.

if you want more technical details, see the FAQ and the docs it links to:

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/27da4ab6-8bc5-451d-a60e-9b792477b3f6%40chromium.org.

gamingsk...@gmail.com

unread,
Aug 29, 2019, 2:13:22 PM8/29/19
to chromium-hterm, gamingsk...@gmail.com, jo...@ziprecruiter.com
Okay, but I'm just interested if it is possible or not?  I just want all my characters to appear uppercase.  If there is another way to do it, that works too.

gamingsk...@gmail.com

unread,
Aug 29, 2019, 2:24:56 PM8/29/19
to chromium-hterm, gamingsk...@gmail.com, jo...@ziprecruiter.com
Basically CAN I substitute one character for another?  and how would I do it?
Reply all
Reply to author
Forward
0 new messages