hterm: figure out a UX where people can easily recover from a transition to graphics character maps |
||
Issue descriptionoften times when you dump binary data (by accident or whatever), the terminal switches the character map to the graphics one. so instead of a prompt like: vapier@vapier-g 0:0 ~ $ they get: ┴▒⎻␋␊⎼@┴▒⎻␋␊⎼-± 0:0 · $ experienced users know that they just have to blindly run `reset` to recover. but can we do better ? obviously if we had issue 213983 (add a context menu), we can add a "reset" command there. but if we went with material design principles, we could add a butter/snack bar [1]. there we could show a message like "Your character map has been changed. Would you like to reset it? [yes] [no] [never]". since it'd disappear automatically after a few seconds, it *hopefully* shouldn't be too intrusive. and the power users could just select "never". [1] https://material.io/guidelines/components/snackbars-toasts.html
,
Nov 27 2017
The following revision refers to this bug: https://chromium.googlesource.com/apps/libapps/+/c5e4453f1ac628c5f2b924ac6440d4e858c50cec commit c5e4453f1ac628c5f2b924ac6440d4e858c50cec Author: Mike Frysinger <vapier@chromium.org> Date: Mon Nov 27 20:54:55 2017 hterm: default all character maps to US/ASCII when resetting We made this change for initialization, but missed it when doing a reset. BUG= chromium:735748 Change-Id: Ic9d1fa378aa2a91a40cb82eaca475b69595cd182 Reviewed-on: https://chromium-review.googlesource.com/789558 Reviewed-by: Brandon Gilmore <varz@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/c5e4453f1ac628c5f2b924ac6440d4e858c50cec/hterm/js/hterm_vt.js
,
Dec 5 2017
i think after issue 747625 where we default the encoding to utf-8 instead of iso-2022, this issue is much less of a problem. people can't get graphics maps unless they explicitly switch the encoding back to iso-2022 first. so lets consider character maps as a legacy feature now. |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Jul 21 2017