Changeset 4139 for trunk/console

Show
Ignore:
Timestamp:
06/08/05 13:54:32 (3 years ago)
Author:
emostar
Message:

Add a patch to configure the backspace key.

Location:
trunk/console/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console.cpp

    r4023 r4139  
    162162  licqConf.ReadStr("OfflineFormat", m_szOfflineFormat, "%a"); 
    163163  licqConf.ReadStr("CommandCharacter", m_szCommandChar, "/"); 
     164  licqConf.ReadNum("Backspace", m_nBackspace, KEY_BACKSPACE); 
    164165 
    165166  if (licqConf.SetSection("macros")) 
     
    395396  licqConf.WriteStr("OfflineFormat", m_szOfflineFormat); 
    396397  licqConf.WriteStr("CommandCharacter", m_szCommandChar); 
     398  licqConf.WriteNum("Backspace", (unsigned long)m_nBackspace); 
    397399 
    398400  licqConf.SetSection("macros"); 
     
    10611063  } 
    10621064 
     1065  // Some operating systems don't have a consistent set of settings for 
     1066  // what key should erase characters.  In particular, FC3 sets the terminal 
     1067  // erase character (kbs) for xterm to ^H instead of 127, even though the 
     1068  // rest of the operating system follows the Debian conventions. 
     1069  // This allows the user to override whatever the OS has chosen. 
     1070  if (cIn == m_nBackspace) 
     1071    cIn = KEY_BACKSPACE; 
     1072 
    10631073  (this->*(winMain->fProcessInput))(cIn); 
    10641074} 
  • trunk/console/src/console.h

    r3933 r4139  
    8383  char m_szOfflineFormat[30]; 
    8484  char m_szCommandChar[30]; 
     85  short m_nBackspace; 
    8586 
    8687  unsigned short m_nCurrentGroup, m_nCon;