I'm having real problems reading user input, I hope someone can help.
I'm trying to read in a number from the user - could be one or two
digits - and choose an action based on that number. If I use
readline, the result is always enclosed in square brackets, so my
comparisons are always returning false. Any ideas? Either for an
alternative input method, or a way of breaking the result out of the [
].
A further problem is that the dk keyboard remapping command isn't
being remembered after I close xved, even if I tell it to make the
changes permanent. Without it, arrow keys etc don't work. I'm using
Red Hat 9 on desktop x86.
Many thanks,
Petez.
|