Backspace and CTRL commands print question marksCtrl-Alt-F1 to F6 work differently for left and right sides...

Will this series of events work to drown the Tarrasque?

Parse a C++14 integer literal

How to customize the pie chart background in PowerPoint?

How can sister protect herself from impulse purchases with a credit card?

Good examples of "two is easy, three is hard" in computational sciences

How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?

Why aren't satellites disintegrated even though they orbit earth within earth's Roche Limits?

How do I balance a campaign consisting of four kobold PCs?

Quotient of Three Dimensional Torus by Permutation on Coordinates

Why does the setUID bit work inconsistently?

Can the word crowd refer to just 10 people?

Random Numbers and Variables in Latex

Why wear sunglasses in indoor velodromes?

Who is frowning in the sentence "Daisy looked at Tom frowning"?

Windows reverting changes made by Linux to FAT32 partion

Former Employer just sent me an IP Agreement

pwaS eht tirsf dna tasl setterl fo hace dorw

Have the writers and actors of GOT responded to its poor reception?

Error when running ((x++)) as root

Working hours and productivity expectations for game artists and programmers

Is my homebrew Awakened Bear race balanced?

FIFO data structure in pure C

How to get all possible paths in 0/1 matrix better way?

Why is choosing a suitable thermodynamic potential important?



Backspace and CTRL commands print question marks


Ctrl-Alt-F1 to F6 work differently for left and right sides of the keyboardMake 'CTRL-/' behave the same in vtty and xtermHow to disable ctrl-alt-del and /etc/init/control-alt-del.conf in Linux?Setting up working environment - Konsole or other terminal - open few tabs and run some commandsX: alt/ctrl/f1 doesn't work any more after turning the display off and on again with xrandrWhat is the standard way to enable CTRL+arrow (alt+B and alt+F) in the non-GUI console?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I've run into a peculiar issue on a fresh gentoo install. Within the console, the Backspace key prints an adorable little question mark inscribed within a square instead of its intended function. Also, I've found that Tab behaves in exactly the same way, in addition to any Ctrl commands. The keys worked perfectly fine during the install, but after booting into the system proper and performing initial setup, they seem to have just given up.



localectl status outputs the following:



System Locale: LANG=en_US.utf8 
LC_COLLATE=C
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp


Basically, I can't use the Backspace or Ctrl keys in console and haven't yet installed x11. I'm stuck. Any ideas?










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

    – unxnut
    Jan 3 '15 at 22:10











  • Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

    – faustian.breaks
    Jan 3 '15 at 22:16













  • Hit <ctrl v> before hitting the backspace key.

    – unxnut
    Jan 3 '15 at 23:58


















2















I've run into a peculiar issue on a fresh gentoo install. Within the console, the Backspace key prints an adorable little question mark inscribed within a square instead of its intended function. Also, I've found that Tab behaves in exactly the same way, in addition to any Ctrl commands. The keys worked perfectly fine during the install, but after booting into the system proper and performing initial setup, they seem to have just given up.



localectl status outputs the following:



System Locale: LANG=en_US.utf8 
LC_COLLATE=C
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp


Basically, I can't use the Backspace or Ctrl keys in console and haven't yet installed x11. I'm stuck. Any ideas?










share|improve this question
















bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

    – unxnut
    Jan 3 '15 at 22:10











  • Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

    – faustian.breaks
    Jan 3 '15 at 22:16













  • Hit <ctrl v> before hitting the backspace key.

    – unxnut
    Jan 3 '15 at 23:58














2












2








2








I've run into a peculiar issue on a fresh gentoo install. Within the console, the Backspace key prints an adorable little question mark inscribed within a square instead of its intended function. Also, I've found that Tab behaves in exactly the same way, in addition to any Ctrl commands. The keys worked perfectly fine during the install, but after booting into the system proper and performing initial setup, they seem to have just given up.



localectl status outputs the following:



System Locale: LANG=en_US.utf8 
LC_COLLATE=C
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp


Basically, I can't use the Backspace or Ctrl keys in console and haven't yet installed x11. I'm stuck. Any ideas?










share|improve this question
















I've run into a peculiar issue on a fresh gentoo install. Within the console, the Backspace key prints an adorable little question mark inscribed within a square instead of its intended function. Also, I've found that Tab behaves in exactly the same way, in addition to any Ctrl commands. The keys worked perfectly fine during the install, but after booting into the system proper and performing initial setup, they seem to have just given up.



localectl status outputs the following:



System Locale: LANG=en_US.utf8 
LC_COLLATE=C
VC Keymap: us
X11 Layout: us
X11 Model: pc105+inet
X11 Options: terminate:ctrl_alt_bksp


Basically, I can't use the Backspace or Ctrl keys in console and haven't yet installed x11. I'm stuck. Any ideas?







gentoo console






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 24 '16 at 13:15









Stephen Kitt

186k26429510




186k26429510










asked Jan 3 '15 at 21:49









faustian.breaksfaustian.breaks

112




112





bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 1 hour ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

    – unxnut
    Jan 3 '15 at 22:10











  • Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

    – faustian.breaks
    Jan 3 '15 at 22:16













  • Hit <ctrl v> before hitting the backspace key.

    – unxnut
    Jan 3 '15 at 23:58














  • 1





    An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

    – unxnut
    Jan 3 '15 at 22:10











  • Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

    – faustian.breaks
    Jan 3 '15 at 22:16













  • Hit <ctrl v> before hitting the backspace key.

    – unxnut
    Jan 3 '15 at 23:58








1




1





An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

– unxnut
Jan 3 '15 at 22:10





An easy way to fix will be by using the stty command. For example, to fix backspace, you can type stty erase <backspace_key>.

– unxnut
Jan 3 '15 at 22:10













Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

– faustian.breaks
Jan 3 '15 at 22:16







Thank you for your reply, unxnut. I issued the command and received the following output stty: invalid integer argument '?' (where '?' is my backspace key)

– faustian.breaks
Jan 3 '15 at 22:16















Hit <ctrl v> before hitting the backspace key.

– unxnut
Jan 3 '15 at 23:58





Hit <ctrl v> before hitting the backspace key.

– unxnut
Jan 3 '15 at 23:58










2 Answers
2






active

oldest

votes


















0














Ran out of space as a comment..



For backspace, stty erase '^?' should get you what you want.



When you say CTRL commands aren't working, do you mean CTRL+C? If so, what about stty intr ^C? Can you still switch terminals with CTRL+ALT+F#? In any case, it may be helpful to paste the output of stty -a



The following link should be helpful when it comes to stty settings:
http://docstore.mik.ua/orelly/unix3/upt/ch05_08.htm



Also, another question: since you're using the localectl command, does that mean you're running systemd? Did the install disk use systemd or openRC? I'm pretty sure it's openRC and that might be why it worked in the installer and not in the OS.






share|improve this answer































    0














    The question-mark-in-a-box is the Unicode replacement character. The Linux console will print that in two cases:




    • the character is not in the currently-loaded font (512 glyphs), or

    • the display-controls feature has been enabled in the console.


    The latter has been in the kernel quite a while, as seen in this link to console.c in 2.2.26, which has the relevant comment:



    1869                 /* If the original code was a control character we
    1870 * only allow a glyph to be displayed if the code is
    1871 * not normally used (such as for cursor movement) or
    1872 * if the disp_ctrl mode has been explicitly enabled.
    1873 * Certain characters (as given by the CTRL_ALWAYS
    1874 * bitmap) are always displayed as control characters,
    1875 * as the console would be pretty useless without
    1876 * them; to display an arbitrary font position use the
    1877 * direct-to-font zone in UTF-8 mode.
    1878 */


    and it is set by either of two escape sequences:



    1051                         case 11: /* ANSI X3.64-1979 (SCO-ish?)
    1052 * Select first alternate font, lets
    1053 * chars < 32 be displayed as ROM chars.
    1054 */
    1055 translate = set_translate(IBMPC_MAP,currcons);
    1056 disp_ctrl = 1;
    1057 toggle_meta = 0;
    1058 break;
    1059 case 12: /* ANSI X3.64-1979 (SCO-ish?)
    1060 * Select second alternate font, toggle
    1061 * high bit before displaying as ROM char.
    1062 */
    1063 translate = set_translate(IBMPC_MAP,currcons);
    1064 disp_ctrl = 1;
    1065 toggle_meta = 1;
    1066 break;


    and reset by a third:



    1040                         case 10: /* ANSI X3.64-1979 (SCO-ish?)
    1041 * Select primary font, don't display
    1042 * control chars if defined, don't set
    1043 * bit 8 on output.
    1044 */
    1045 translate = set_translate(charset == 0
    1046 ? G0_charset
    1047 : G1_charset,currcons);
    1048 disp_ctrl = 0;
    1049 toggle_meta = 0;
    1050 break;


    The last (if TERM is linux) can be scripted as



    tput rmpch


    using this feature:



       exit_pc_charset_mode      rmpch    S3   Exit PC character
    display mode


    or



    tput sgr0


    but not the reset or stty commands.



    Further reading:




    • console_codes - Linux console escape and control sequences

    • terminfo building block klone+sgr, containing rmpch

    • terminfo - terminal capability data base






    share|improve this answer


























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "106"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f177272%2fbackspace-and-ctrl-commands-print-question-marks%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Ran out of space as a comment..



      For backspace, stty erase '^?' should get you what you want.



      When you say CTRL commands aren't working, do you mean CTRL+C? If so, what about stty intr ^C? Can you still switch terminals with CTRL+ALT+F#? In any case, it may be helpful to paste the output of stty -a



      The following link should be helpful when it comes to stty settings:
      http://docstore.mik.ua/orelly/unix3/upt/ch05_08.htm



      Also, another question: since you're using the localectl command, does that mean you're running systemd? Did the install disk use systemd or openRC? I'm pretty sure it's openRC and that might be why it worked in the installer and not in the OS.






      share|improve this answer




























        0














        Ran out of space as a comment..



        For backspace, stty erase '^?' should get you what you want.



        When you say CTRL commands aren't working, do you mean CTRL+C? If so, what about stty intr ^C? Can you still switch terminals with CTRL+ALT+F#? In any case, it may be helpful to paste the output of stty -a



        The following link should be helpful when it comes to stty settings:
        http://docstore.mik.ua/orelly/unix3/upt/ch05_08.htm



        Also, another question: since you're using the localectl command, does that mean you're running systemd? Did the install disk use systemd or openRC? I'm pretty sure it's openRC and that might be why it worked in the installer and not in the OS.






        share|improve this answer


























          0












          0








          0







          Ran out of space as a comment..



          For backspace, stty erase '^?' should get you what you want.



          When you say CTRL commands aren't working, do you mean CTRL+C? If so, what about stty intr ^C? Can you still switch terminals with CTRL+ALT+F#? In any case, it may be helpful to paste the output of stty -a



          The following link should be helpful when it comes to stty settings:
          http://docstore.mik.ua/orelly/unix3/upt/ch05_08.htm



          Also, another question: since you're using the localectl command, does that mean you're running systemd? Did the install disk use systemd or openRC? I'm pretty sure it's openRC and that might be why it worked in the installer and not in the OS.






          share|improve this answer













          Ran out of space as a comment..



          For backspace, stty erase '^?' should get you what you want.



          When you say CTRL commands aren't working, do you mean CTRL+C? If so, what about stty intr ^C? Can you still switch terminals with CTRL+ALT+F#? In any case, it may be helpful to paste the output of stty -a



          The following link should be helpful when it comes to stty settings:
          http://docstore.mik.ua/orelly/unix3/upt/ch05_08.htm



          Also, another question: since you're using the localectl command, does that mean you're running systemd? Did the install disk use systemd or openRC? I'm pretty sure it's openRC and that might be why it worked in the installer and not in the OS.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 12 '15 at 21:28









          zjezje

          1,688918




          1,688918

























              0














              The question-mark-in-a-box is the Unicode replacement character. The Linux console will print that in two cases:




              • the character is not in the currently-loaded font (512 glyphs), or

              • the display-controls feature has been enabled in the console.


              The latter has been in the kernel quite a while, as seen in this link to console.c in 2.2.26, which has the relevant comment:



              1869                 /* If the original code was a control character we
              1870 * only allow a glyph to be displayed if the code is
              1871 * not normally used (such as for cursor movement) or
              1872 * if the disp_ctrl mode has been explicitly enabled.
              1873 * Certain characters (as given by the CTRL_ALWAYS
              1874 * bitmap) are always displayed as control characters,
              1875 * as the console would be pretty useless without
              1876 * them; to display an arbitrary font position use the
              1877 * direct-to-font zone in UTF-8 mode.
              1878 */


              and it is set by either of two escape sequences:



              1051                         case 11: /* ANSI X3.64-1979 (SCO-ish?)
              1052 * Select first alternate font, lets
              1053 * chars < 32 be displayed as ROM chars.
              1054 */
              1055 translate = set_translate(IBMPC_MAP,currcons);
              1056 disp_ctrl = 1;
              1057 toggle_meta = 0;
              1058 break;
              1059 case 12: /* ANSI X3.64-1979 (SCO-ish?)
              1060 * Select second alternate font, toggle
              1061 * high bit before displaying as ROM char.
              1062 */
              1063 translate = set_translate(IBMPC_MAP,currcons);
              1064 disp_ctrl = 1;
              1065 toggle_meta = 1;
              1066 break;


              and reset by a third:



              1040                         case 10: /* ANSI X3.64-1979 (SCO-ish?)
              1041 * Select primary font, don't display
              1042 * control chars if defined, don't set
              1043 * bit 8 on output.
              1044 */
              1045 translate = set_translate(charset == 0
              1046 ? G0_charset
              1047 : G1_charset,currcons);
              1048 disp_ctrl = 0;
              1049 toggle_meta = 0;
              1050 break;


              The last (if TERM is linux) can be scripted as



              tput rmpch


              using this feature:



                 exit_pc_charset_mode      rmpch    S3   Exit PC character
              display mode


              or



              tput sgr0


              but not the reset or stty commands.



              Further reading:




              • console_codes - Linux console escape and control sequences

              • terminfo building block klone+sgr, containing rmpch

              • terminfo - terminal capability data base






              share|improve this answer






























                0














                The question-mark-in-a-box is the Unicode replacement character. The Linux console will print that in two cases:




                • the character is not in the currently-loaded font (512 glyphs), or

                • the display-controls feature has been enabled in the console.


                The latter has been in the kernel quite a while, as seen in this link to console.c in 2.2.26, which has the relevant comment:



                1869                 /* If the original code was a control character we
                1870 * only allow a glyph to be displayed if the code is
                1871 * not normally used (such as for cursor movement) or
                1872 * if the disp_ctrl mode has been explicitly enabled.
                1873 * Certain characters (as given by the CTRL_ALWAYS
                1874 * bitmap) are always displayed as control characters,
                1875 * as the console would be pretty useless without
                1876 * them; to display an arbitrary font position use the
                1877 * direct-to-font zone in UTF-8 mode.
                1878 */


                and it is set by either of two escape sequences:



                1051                         case 11: /* ANSI X3.64-1979 (SCO-ish?)
                1052 * Select first alternate font, lets
                1053 * chars < 32 be displayed as ROM chars.
                1054 */
                1055 translate = set_translate(IBMPC_MAP,currcons);
                1056 disp_ctrl = 1;
                1057 toggle_meta = 0;
                1058 break;
                1059 case 12: /* ANSI X3.64-1979 (SCO-ish?)
                1060 * Select second alternate font, toggle
                1061 * high bit before displaying as ROM char.
                1062 */
                1063 translate = set_translate(IBMPC_MAP,currcons);
                1064 disp_ctrl = 1;
                1065 toggle_meta = 1;
                1066 break;


                and reset by a third:



                1040                         case 10: /* ANSI X3.64-1979 (SCO-ish?)
                1041 * Select primary font, don't display
                1042 * control chars if defined, don't set
                1043 * bit 8 on output.
                1044 */
                1045 translate = set_translate(charset == 0
                1046 ? G0_charset
                1047 : G1_charset,currcons);
                1048 disp_ctrl = 0;
                1049 toggle_meta = 0;
                1050 break;


                The last (if TERM is linux) can be scripted as



                tput rmpch


                using this feature:



                   exit_pc_charset_mode      rmpch    S3   Exit PC character
                display mode


                or



                tput sgr0


                but not the reset or stty commands.



                Further reading:




                • console_codes - Linux console escape and control sequences

                • terminfo building block klone+sgr, containing rmpch

                • terminfo - terminal capability data base






                share|improve this answer




























                  0












                  0








                  0







                  The question-mark-in-a-box is the Unicode replacement character. The Linux console will print that in two cases:




                  • the character is not in the currently-loaded font (512 glyphs), or

                  • the display-controls feature has been enabled in the console.


                  The latter has been in the kernel quite a while, as seen in this link to console.c in 2.2.26, which has the relevant comment:



                  1869                 /* If the original code was a control character we
                  1870 * only allow a glyph to be displayed if the code is
                  1871 * not normally used (such as for cursor movement) or
                  1872 * if the disp_ctrl mode has been explicitly enabled.
                  1873 * Certain characters (as given by the CTRL_ALWAYS
                  1874 * bitmap) are always displayed as control characters,
                  1875 * as the console would be pretty useless without
                  1876 * them; to display an arbitrary font position use the
                  1877 * direct-to-font zone in UTF-8 mode.
                  1878 */


                  and it is set by either of two escape sequences:



                  1051                         case 11: /* ANSI X3.64-1979 (SCO-ish?)
                  1052 * Select first alternate font, lets
                  1053 * chars < 32 be displayed as ROM chars.
                  1054 */
                  1055 translate = set_translate(IBMPC_MAP,currcons);
                  1056 disp_ctrl = 1;
                  1057 toggle_meta = 0;
                  1058 break;
                  1059 case 12: /* ANSI X3.64-1979 (SCO-ish?)
                  1060 * Select second alternate font, toggle
                  1061 * high bit before displaying as ROM char.
                  1062 */
                  1063 translate = set_translate(IBMPC_MAP,currcons);
                  1064 disp_ctrl = 1;
                  1065 toggle_meta = 1;
                  1066 break;


                  and reset by a third:



                  1040                         case 10: /* ANSI X3.64-1979 (SCO-ish?)
                  1041 * Select primary font, don't display
                  1042 * control chars if defined, don't set
                  1043 * bit 8 on output.
                  1044 */
                  1045 translate = set_translate(charset == 0
                  1046 ? G0_charset
                  1047 : G1_charset,currcons);
                  1048 disp_ctrl = 0;
                  1049 toggle_meta = 0;
                  1050 break;


                  The last (if TERM is linux) can be scripted as



                  tput rmpch


                  using this feature:



                     exit_pc_charset_mode      rmpch    S3   Exit PC character
                  display mode


                  or



                  tput sgr0


                  but not the reset or stty commands.



                  Further reading:




                  • console_codes - Linux console escape and control sequences

                  • terminfo building block klone+sgr, containing rmpch

                  • terminfo - terminal capability data base






                  share|improve this answer















                  The question-mark-in-a-box is the Unicode replacement character. The Linux console will print that in two cases:




                  • the character is not in the currently-loaded font (512 glyphs), or

                  • the display-controls feature has been enabled in the console.


                  The latter has been in the kernel quite a while, as seen in this link to console.c in 2.2.26, which has the relevant comment:



                  1869                 /* If the original code was a control character we
                  1870 * only allow a glyph to be displayed if the code is
                  1871 * not normally used (such as for cursor movement) or
                  1872 * if the disp_ctrl mode has been explicitly enabled.
                  1873 * Certain characters (as given by the CTRL_ALWAYS
                  1874 * bitmap) are always displayed as control characters,
                  1875 * as the console would be pretty useless without
                  1876 * them; to display an arbitrary font position use the
                  1877 * direct-to-font zone in UTF-8 mode.
                  1878 */


                  and it is set by either of two escape sequences:



                  1051                         case 11: /* ANSI X3.64-1979 (SCO-ish?)
                  1052 * Select first alternate font, lets
                  1053 * chars < 32 be displayed as ROM chars.
                  1054 */
                  1055 translate = set_translate(IBMPC_MAP,currcons);
                  1056 disp_ctrl = 1;
                  1057 toggle_meta = 0;
                  1058 break;
                  1059 case 12: /* ANSI X3.64-1979 (SCO-ish?)
                  1060 * Select second alternate font, toggle
                  1061 * high bit before displaying as ROM char.
                  1062 */
                  1063 translate = set_translate(IBMPC_MAP,currcons);
                  1064 disp_ctrl = 1;
                  1065 toggle_meta = 1;
                  1066 break;


                  and reset by a third:



                  1040                         case 10: /* ANSI X3.64-1979 (SCO-ish?)
                  1041 * Select primary font, don't display
                  1042 * control chars if defined, don't set
                  1043 * bit 8 on output.
                  1044 */
                  1045 translate = set_translate(charset == 0
                  1046 ? G0_charset
                  1047 : G1_charset,currcons);
                  1048 disp_ctrl = 0;
                  1049 toggle_meta = 0;
                  1050 break;


                  The last (if TERM is linux) can be scripted as



                  tput rmpch


                  using this feature:



                     exit_pc_charset_mode      rmpch    S3   Exit PC character
                  display mode


                  or



                  tput sgr0


                  but not the reset or stty commands.



                  Further reading:




                  • console_codes - Linux console escape and control sequences

                  • terminfo building block klone+sgr, containing rmpch

                  • terminfo - terminal capability data base







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 24 '16 at 22:37

























                  answered May 24 '16 at 22:21









                  Thomas DickeyThomas Dickey

                  54.7k5108183




                  54.7k5108183






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Unix & Linux Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f177272%2fbackspace-and-ctrl-commands-print-question-marks%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                      The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                      Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...