Author Topic: Terminal Annoyances  (Read 4125 times)

fsjws4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Terminal Annoyances
« on: August 31, 2004, 12:48:43 am »
I've got some issues with the Terminal apps:

* In the regular Terminal, pressing the Cancel/On/Off button to wake from Suspend mode sends an Esc to the terminal, killing the session. Really irritating when I had a terminal session frontmost when it went into Suspend mode...

* KTerminal doesn't seem to respond to the backspace key. Maybe it's a setting that's wrong on my system, but I don't know where to look. This little keyboard is tricky enough as it is, ignoring the backspace just makes it harder.

Any fixes/workarounds for either of these issues?
5500 w/ OZ v3.5.1
64 MB Kodak CF
Linksys WCF12 CF wifi

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Terminal Annoyances
« Reply #1 on: August 31, 2004, 02:00:57 am »
See if the backspace works after you type:

stty sane

I no longer have a functioning SL-5500.  I do not experience the problem that you describe on my SL-C760.

fsjws4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Terminal Annoyances
« Reply #2 on: August 31, 2004, 07:34:42 pm »
Yeah, 'stty sane' fixes the backspace -- that's cool. Waking from suspend still eats my terminal, though, both the one from Sharp and the QKonsole app. Is that just how suspend works?
5500 w/ OZ v3.5.1
64 MB Kodak CF
Linksys WCF12 CF wifi

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Terminal Annoyances
« Reply #3 on: September 01, 2004, 03:24:14 am »
Escape should never kill a terminal session. It's EOF (Shift+FN+D) that ends a shell session.

Where do you have the terminal app installed? On internal memory or CF/SD? If it's not in internal memory, that could be the problem because CF and SD cards can get remounted on resuming, which can cause some apps to effectively crash.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

fsjws4

  • Newbie
  • *
  • Posts: 17
    • View Profile
Terminal Annoyances
« Reply #4 on: September 01, 2004, 05:41:43 pm »
Aha! I think that's it. I have the terminal installed to internal memory, but I was cd'd into a CF directory. It wakes from suspend just fine if I'm in a non-CF directory. I don't have an SD card yet, so I can't try that.

One other bit of weirdness, though. If I go into suspend while a program is running (such as a looping Perl script or even "su"), waking from sleep will either kill that process (su) or push it to the background (Perl).
5500 w/ OZ v3.5.1
64 MB Kodak CF
Linksys WCF12 CF wifi

cascadefx

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://
Terminal Annoyances
« Reply #5 on: September 08, 2004, 07:47:24 pm »
Quote
Aha! I think that's it. I have the terminal installed to internal memory, but I was cd'd into a CF directory. It wakes from suspend just fine if I'm in a non-CF directory. I don't have an SD card yet, so I can't try that.

One other bit of weirdness, though. If I go into suspend while a program is running (such as a looping Perl script or even "su"), waking from sleep will either kill that process (su) or push it to the background (Perl).
Wake from suspend while in an sd directory doesn't show any problems that I know of.  Wierd that it causes that issue while in a CF directory.
Zaurus SL-5600
Sharp 1.0 ROM
256 SanDisk Secure Digital Card (fat16)
Linksys WCF12 wireless card

gdog

  • Full Member
  • ***
  • Posts: 246
    • View Profile
Terminal Annoyances
« Reply #6 on: September 08, 2004, 11:27:59 pm »
Quote
Yeah, 'stty sane' fixes the backspace -- that's cool. Waking from suspend still eats my terminal, though, both the one from Sharp and the QKonsole app. Is that just how suspend works?
Actually if you just include the following in your .profile it will take care of the problem without having to execute stty sane

stty erase "^?"
You can tell a lot about a man by the condition of his shoes

rjohnson1969

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://
Terminal Annoyances
« Reply #7 on: March 10, 2005, 10:33:44 am »
OK, while we're on the topic of Konsole...
How can I set up a GUI Icon that will run a specific command in the Konsole.  (I'm thinking of HNB, but mc or such would be handy.)  

I mean, how do I launch a command line ap from the GUI?  I've copied the Konsole .desktop file where I want it, now how do I pass the command to it?
sl-5500 with Sharp 3.13 ROM
using stock PIM
generic 512MB SD
Pretec CF Wi-Fi

nilch

  • Hero Member
  • *****
  • Posts: 668
    • View Profile
    • http://
Terminal Annoyances
« Reply #8 on: March 10, 2005, 02:20:43 pm »
I think you need to put the command in a script file (.sh) and then put in the icon for the .sh file and also include the file type (sh) as an associated file type in mime.types file
(I dont remember where that file should be in the file system - probably QtPalmtop/etc
New no more-C1000 / 5000D (sold my 6000 and 750) | Cacko ROM 1.23 on C1000 | 256 MB CF | 2GB PNY SD card | Socket Networker WiFi CF Card | USB Host cable from StreamlineCPUS | Mini Microphone (for voice recording) |

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Terminal Annoyances
« Reply #9 on: March 10, 2005, 05:54:41 pm »
since the title says "terminal annoyances" I will venture an almost embarassing question.

How do I get my terminal (I am always root) in root on sharprom to do tab completion?

this is going to be really  obvious, isn't it? (wince)
adf
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Terminal Annoyances
« Reply #10 on: March 10, 2005, 09:17:19 pm »
Quote
since the title says "terminal annoyances" I will venture an almost embarassing question.

How do I get my terminal (I am always root) in root on sharprom to do tab completion?

this is going to be really  obvious, isn't it? (wince)
adf
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

You have to manually run "bash" after you su or change the /etc/passwd to use /bin/bash instead of /bin/sh as roots default shell.

/bin/sh doesn't do tab completion.

A note about the resume sending Esc and/or killing su jobs - this is a kernel issue not a terminal issue.

The kernal available with the cacko rom or from [a href=\"http://tetsu.homelinux.org/zaurus/kernel/index.html]http://tetsu.homelinux.org/zaurus/kernel/index.html[/url] don't have this problem.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Terminal Annoyances
« Reply #11 on: March 10, 2005, 10:58:41 pm »
Isn't that maybe an issue with group ownership? I followed the directions on the kismet on 6000 how to and ended upchanging the qpe dir to root ownership permanently--so, like cacko and oz/opie I login and stay in as root.... It is nice.  resume doesn't kill my terminals, though, so I thought maybe this was the issue, rather than the kernel. Of course i am running a kernel that began w/ tetsu.... and can't say anything for sure.

Thanks very much for the "bash" pointer.  You will have saved me hours by may.  It IS obvious, I suppose, but I think I would not have guessed.
« Last Edit: March 10, 2005, 10:59:44 pm by adf »
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Terminal Annoyances
« Reply #12 on: March 11, 2005, 09:32:20 am »
It may well be an ownership thing, but i've never had my Z login as anything other than zaurus.

I used to have the resume killing root thing till I updated my kernel - At first I thought the change was due to an update terminal app (qkonsole) but later found it was also true for the old embeddedkonsole.

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

rjohnson1969

  • Newbie
  • *
  • Posts: 46
    • View Profile
    • http://
Terminal Annoyances
« Reply #13 on: May 24, 2005, 05:35:27 pm »
rjohnson1969 (me) asked:
Quote
How can I set up a GUI Icon that will run a specific command in the Konsole. (I'm thinking of HNB, but mc or such would be handy.)
I mean, how do I launch a command line ap from the GUI? I've copied the Konsole .desktop file where I want it, now how do I pass the command to it?
nilch replied:
Quote
I think you need to put the command in a script file (.sh) and then put in the icon for the .sh file and also include the file type (sh) as an associated file type in mime.types file
(I dont remember where that file should be in the file system - probably QtPalmtop/etc
I need help with mime types.  I've looked at the mime.types file, but I don't understand it.  How do I set up a type that will make [console of choice] come up and run .sh files?  Any examples?
sl-5500 with Sharp 3.13 ROM
using stock PIM
generic 512MB SD
Pretec CF Wi-Fi