LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-14-2017, 01:07 PM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
BLFS8: alt keys in irssi in xterm


So in my BLFS8 system I have compiled irssi. This is an ncurses irc program (not in the BLFS book) that I've used in various distros for years. The compile and install ran fine. The program runs fine execpt for one thing...

In irc, to switch between each channel window, one uses alt and anumber key. So to do go "window" #2, press alt-2. Right. In my LFS system the alt-2 (or alt-1, alt 3, etc) key is instead interpreted as a superscipt character, not a control key.

Is it irssi at fault? xterm? I have not compiled any other terminal program so diagnosis is limited.

Has anyone else compiled irssi in their [b]lfs system? Do you get this problem?
 
Old 06-14-2017, 01:19 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I have irssi running in "Terminator" and alt numbers works fine here. Tried it with xterm and no dosn't work the same

Last edited by spiky0011; 06-14-2017 at 01:22 PM.
 
Old 06-14-2017, 02:14 PM   #3
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
In your .Xresources file in home directory put this line:

Code:
xterm*eightBitInput:   false
and your alt problem will be solved. It is described in man page of xterm.

edit: Forgot to mention, you need to do xrdb -merge .Xresources after you do it. Also, there are 2 more ways to achieve same thing. One is to do Ctrl + left click of mouse and that will show main menu options of Xterm where you need to check meta sends escape option, which is not permanent solution. Other is in .Xresources too but involves more settings and defines alt separately from meta key.

Last edited by dejank; 06-14-2017 at 03:12 PM.
 
Old 06-14-2017, 09:01 PM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651

Original Poster
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
Ah, interesting. Thank you.

Double-checking with the xterm man page confirms, save for one difference. Nowhere in the man page was there mention of an .XResources file. On the other distro, where irrsi & xterm are working, there was no such file. However, as indicated by the xterm man page, there is an XTerm file. I added that "xterm*eightBitInput: false" line to my XTerm file, started a new xterm, and bam: success. Irssi now handles keys correctly in xterm, yay. Bonus: I did not need to issue that xrdb command.
 
Old 06-15-2017, 03:14 AM   #5
dejank
Member
 
Registered: May 2016
Location: Belgrade, Serbia
Distribution: Debian
Posts: 229

Rep: Reputation: Disabled
It is .Xresources and before that it was .Xdefaults. That is not xterm file, that is general file for settings of various applications under X. For example, Emacs respects settings in .Xresources too. Look here: https://wiki.archlinux.org/index.php/X_resources (there is link to setting xterm there too).

Last edited by dejank; 06-15-2017 at 03:15 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALT+B, ALT+F key combinations in xterm don't work nIMBVS cAos 5 05-06-2020 09:23 AM
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 10:37 AM
Keys in xterm keep repeating tekmann33 Linux - Newbie 3 03-04-2008 08:00 AM
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM
xterm alt becomes compose? Only xterm affected. -0- Linux - Software 0 09-12-2006 11:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration