WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Aterm Enter Key Function  (Read 499 times)

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Aterm Enter Key Function
« on: November 08, 2020, 08:36:22 PM »
TC 11.1 terminal extension Aterm. Enter key is not executing the command I enter. I have to use Shift-Enter combo to execute command. Is this normal for Aterm?. Note Rxvt works ok for me.
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
Re: Aterm Enter Key Function
« Reply #1 on: November 08, 2020, 09:01:36 PM »
Hi Richa Rd
Welcome to the forum.

The  aterm  extension for x86_64 was introduced in TC5:
http://tinycorelinux.net/5.x/x86_64/tcz/aterm.tcz.info
The extension remains unchanged in TC11:
http://tinycorelinux.net/11.x/x86_64/tcz/aterm.tcz.info

I have run aterm under TC10 x86_64 and have not witnessed such behavior.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
Re: Aterm Enter Key Function
« Reply #2 on: November 09, 2020, 07:25:53 AM »
Hi Richa Rd
I just realized I only gave you an answer for the 64 bit version. The same answer applies to the 32 bit version. I use  aterm  under
32 bit TC10 every day without issue.

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #3 on: November 10, 2020, 01:51:48 PM »
Thanks Rich for your reply. I recall having the same problem on another small distro, but I can't remember which one. I will continue investigation.






Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
Re: Aterm Enter Key Function
« Reply #4 on: November 10, 2020, 06:46:26 PM »
Hi Richa Rd
Maybe something you altered:

1. ~/.ashrc
2. ~/.profile
3. Did you change the default shell to  bash ?
4. ~/.bashrc
5. Does executing  stty sane  resolve the issue?

Just trying to jog your memory since you say you experienced this before.

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #5 on: November 13, 2020, 02:37:00 PM »
Hi Rich,
I am using the default shell and I have not altered anything. I use the 32 bit versions and have tried TC and TC Plus.
Executing stty sane does not fix it.
When using the CLI version, the <enter> key works ok.
Also I have connected a Logitech wireless keyboard & mouse combo via a usb dongle, and that keyboard <return> works ok on aterm.
It seems I have an incompatibility issue between aterm and Compaq Evo N1000c laptop keyboard.
 
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
Re: Aterm Enter Key Function
« Reply #6 on: November 13, 2020, 06:45:40 PM »
Hi Richa Rd
Make sure you have  Xlibs.tcz  installed. You said Shift-Enter works. Using the laptops keyboard, run the following
command in aterm:
Code: [Select]
xmodmap -pke > keys.txtAttach the  keys.txt  file to your next post.

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #7 on: November 14, 2020, 02:32:51 PM »
Hi Rich, keys.txt file attached as requested.
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 8393
Re: Aterm Enter Key Function
« Reply #8 on: November 14, 2020, 05:35:10 PM »
Hi Richa Rd
Does executing this fix it:
Code: [Select]
xmodmap -e "keycode  36 = Return NoSymbol Return"

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #9 on: November 15, 2020, 12:21:33 AM »
Hi Rich, that command made no difference.
I have also noticed Xvesa and Wifi setup screens when I hit Enter they return ^[OM on the screen instead of executing. Only Shift+Enter executes.
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Online jazzbiker

  • Sr. Member
  • ****
  • Posts: 376
Re: Aterm Enter Key Function
« Reply #10 on: November 15, 2020, 01:07:30 AM »
Hi, guys!

Richa Rd, is  this issue present in pure console?

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #11 on: November 15, 2020, 02:30:18 PM »
Hi Jazzbiker, refer to reply #5... Pure console (CLI) works ok, also a Logitech wireless keyboard works ok. Also if I load an alternate terminal  extension rxvt, then rxvt works ok. I could replace aterm with rxvt, but sticking to TC philosophy of small is good I would prefer to use aterm (aterm 53KB v rxvt 368 KB).
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Online jazzbiker

  • Sr. Member
  • ****
  • Posts: 376
Re: Aterm Enter Key Function
« Reply #12 on: November 15, 2020, 04:07:03 PM »
Oh, "CLI version" for me is not the same  as pure console ) If You like minimalism, try st.tcz. And there exists showkey.tcz in TC4 repo. But be careful, don't run it in console simultaneously with already running X. Maybe Your keyboard produces strange keycode sequences, which are interpreted correctly by rxvt but are fooling aterm.

Offline Richa Rd

  • Newbie
  • *
  • Posts: 8
Re: Aterm Enter Key Function
« Reply #13 on: November 22, 2020, 03:20:24 PM »
I installed st in place of aterm and the <enter> key worked ok, however st.tcz does not integrate with Control Panel tools ie. Terminal Server and Xvesa Setup and also the Wifi tool, which all failed to work.
Installed showkey.tcz from TC4 repo, run it from console, but it froze my screen waiting for a key press and not timing out after 10 secs.
Required a hard power off to reload TC. I might have to go with rxvt with this laptop.
Compaq Evo N1000c P4 cpu 1GB ram 80GB hdd

Online jazzbiker

  • Sr. Member
  • ****
  • Posts: 376
Re: Aterm Enter Key Function
« Reply #14 on: November 23, 2020, 03:01:33 AM »
Hi, Richa Rd!

Yes, the TinyCore Xprogs (Control Panel, Apps and friends) unconditionally try to start aterm, and if You install st instead of aterm You can easily propose it instead of aterm for other TinyCore stuff members. For example place in Your ~/.local/bin directory (it is included in $PATH) the following file, named aterm and having execution permissions and redirecting to st:
Code: [Select]
cat > ~/.local/bin/aterm << EOF
#!/bin/sh
exec /usr/local/bin/st -f Fixed:pixelsize=15:style=bold "$@"
EOF
chmod +x ~/.local/bin/aterm
And all TinyCore programs will work well.
St has some pleasant features:
1. It don't deliver mouse events to the in-running programs.
2. It can deal with both X clipboard buffers. Ctrl-Shift-C and Ctrl-Shift-V for one of them and simply select with mouse and Shift-Ins for the other.
3. You can instantly adjust Your font size with Ctrl-Shift-PgUp and Ctrl-Shift-PgDn.

rxvt in no doubt is the champion. But for me st is favorite :-)

What options You were using to start showkey? In ascii mode (-a) it exits at Ctrl-D.