General :: Bash : Echo Arrow Keys?
Aug 12, 2010Is it possible to echo the arrow keys (up, down, left, right) in bash?
View 4 RepliesIs it possible to echo the arrow keys (up, down, left, right) in bash?
View 4 RepliesI would like to append text to a file. so i wrote in bashecho text >> file.confHowever it doesnt leave a new line. So i can only do this once. How do i add a new line?
View 2 Replies View RelatedI just installed fc12 on a Dell Latitude E6500 laptop. Everything is fine except that my Left and Up arrow keys are inactive so .e.g. I can't review bash history.
In the "keyboard preferences" GUI the keyboard model is "evdev-managed keyboard" (although I have also tried without success the model specific for this laptop) and the only layout is "USA".
Have done an update of all packages without fixing this problem.
I'm using Inkscape on Fedora 15 and when I try to use ALT + [arrow key] to adjust the space between letters, nothing happens. Is that key combination assigned to some other function in GNOME3?
how I might get Alt + [arrow key] to work with Inkscape and Fedora 15
When using firefox, if I use my arrow keys in the keyboard to scroll through the Window, it works only if the mouse pointer is inside the window. Otherwise, the scroll doesn't work. Is there any way to solve this problem?
It's not just the arrow keys, even the TouchPad scroll on my laptop also.
This is a weird problem I am facing right now. I am using Ubuntu 10.04 (lucid) Firefox 3.6.3. The tab key, the arrow keys and the page down / up keys dont work anymore. They're working fine in any other application, like Chrome.
The keys were fine till yesterday and suddenly they have stopped responding.
How can I remap arrow keys to windows key + ijkl? I can do this easily in Autohotkey on windows, but I'm struggling on Ubuntu.
I'd really like the solution to work independently of whether I'm using a window manager or not, and to involve modifying as few files as possible; I work on a lots of different machines and am always building new ones, so would like to minimise reconfig effort.
I've tried to understand .Xmodmap, but couldn't make it work (was hard to find detailed docs on modifier keys). Am also considering win+hjkl!
I am having a lot of problems with hitting the arrow keys while typing. At least, I think that's what it is. Maybe the page up/down/back buttons, too. Is there a way to disable one or more keys on the keyboard via software, other than going into BIOS? It's getting annoying having to retype stuff over and over. I guess maybe I'm just not used to my new keyboard, is all. But I never use those buttons and likely never will.
View 9 Replies View RelatedI have bash script which has lots of echo statements and also I aliased echo to echo -e both in .bash_profile and .bashrc, so that new lines are printed properly for a statement like echo 'Hello World' the output should be I even tried using shopt -s expand_aliases in the script, I am running my script as bash /scripts/scriptnm.sh; if I run it as . /scripts/scriptnm.sh I am getting the desired output.
View 4 Replies View RelatedI bought a fancy new keyboard a couple of weeks ago, a Logitech illuminated one, and it works great in openSuSE 11.2 . . . after it's booted up. It's a dual boot system, however, and today I needed to get into Windows to do some CAD work, and couldn't! That's when I discovered that the arrow keys didn't work in GRUB. It's the particular keyboard, because I can plug the old one in and the problem goes away. Both are USB keyboards. And it must have something to do with loading a keyboard driver of some sort prior to the GRUB screen, because the new keyboard works fine once the bootup is completed. In fact, I've been using it for a couple of weeks now and didn't notice a problem until today.
View 3 Replies View RelatedRecently did a fresh install of Ubuntu 9.1. Great OS. One minor issue with the keyboard.
When playing games, both for Linux and through wine, the game will respond as if the up and left arrow keys are being constantly held down.
It acts like this in Cave Story (Linux version), Sonic Adventure DX Directors Cut: Demo A Version (Wine), and Star Trek Legacy (Wine).
This does not occur when using any non-game applications on my system, such as Open Office. This does not occur when using anything on the Internet, such as simply typing or Internet games.
Other Info, may or may not be helpful: Used ubuntu 8.04 previously, erased old ubuntu partition when upgrading. Arrow Keys responded fine for all applications listed above. Have a Microsoft Windows XP partition as well, only use it for applications that don't run in wine.
Just did a fresh install of maverick and out of the blue the left and right arrow keys are no longer working. the arrows on the numerical pad work.
View 2 Replies View RelatedWhen using nano in the terminal, I can't seem to navigate text using the arrow keys - everything I have read about nano says I should be able to do this.
My Ubuntu installation has no GUI, so I can't use the mouse for navigation.
I was just wondering if there is any program/script/code/trick/way to get the arrow keys to control the mouse pointer and, well basically, the keyboard to do stuff you would do with the mouse..?
And i know about keyboard shortccuts
P.S.: Anyone wanna go searching for 'The Beach' in thailand?
I have updated to 10.10 and now my ir remote is simulating keyboard arrow keys which is causing problems in applications like Boxee. The weird thing is if I stop lircd it still simulates the keyboard arrow keys.
Does anyone know how to stop the keyboard arrow keys from triggering when the ir remote up, down, left or right buttons are pressed?
(Here are all the IR config files)
hardware.conf
Code:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Streamzap PC Remote"
REMOTE_MODULES="lirc_dev streamzap"
[Code]....
So, I have my trusty ol' Aspire One ZG5 running with Natty. I like changing the screen orientation (sideways) to read comic books and books. I've learned how by this page: URL...So, I have no trouble changing my screen orientation with a quick key-combo, but I still need help,I'm trying to figure out how to change the "orientation" of the arrow keys along with the screen. So when i have the screen oriented to the left, the left key works as the up, the up down as the right, etc.
View 1 Replies View RelatedFC13
When rebooting and in Boot Selection Menu , the Arrow keys won't go down through kernel selections. They just won't move.
Is this a Linux or CMOS problem ?
I have dual boot (winxp) which has been working for over a year now.But for some reason recently, grub wont recognise the keyboards arrow keys. ie cant change menu selection. in fact it wont recognise keyboard at all it seems. Pressing enter wont work either. I have to wait for the timeout.
The arrows work before hand (like in bios settings) and after once ubuntu has booted. Just not in the grub menu
Its something to with the USB wireless keyboard. If i replace it for standard PS2 kybd it works.
I am attempting to try install XUbuntu.
I loaded the dvd (one that came with Linux Format Magazine No. 139), changed BIOS to boot from dvd, and then:
I get the welcome screen with the options to boot Ubuntu, KUbuntu, XUbuntu or Boot from First Hard Disk. As I have an older laptop I was going to try XUbuntu. However, the arrow keys did not change the boot option. In fact nothing worked, Tab did not bring up a menu and Enter did not initiate boot.
I tried reloading the dvd, switching off the laptop (no way to shutdown) and restarting but always come up with the same problem.
My DVD drive works fine and the dvd appears not to be faulty since all the info is readable when it is loaded with windows running.
My system details are:
HP compaqnx9000
Mobile Intel Pentium(R) 4-m CPU 2.20 GHz 219GHz 704MB RAM
Optiarc DVD RW AD-7580A
Radeon 1GP 340M
Konsole does not respond to the following keys on my stand-along usb
keypad:
rightarrow,leftarrow,uparrow,downarrow,home,end,pageup,pagedown
Both of the other terminal emulators on slack do recognize
these keys (xterm and xfce terminal emulator).
I can also confirm that xev, if launched from konsole will recognize
these keys.
Konsole is my terminal emulator of choice and it is really nice to
be able to use my left hand for navigation and command retrieval.
Also, keypad arrows work in X apps.
What is the difference between
$echo cat
$cat echo
I'm trying to get multiple numeric valued version information into a variable, all on the same line. I want for example $VERSION=3.1.0.01.002. I'm trying to pull seperate values from the file named version.properties, wherein the file contains;
patch.rel.num=0
sqa.num=01
major.rel.num=3
build.num=002
minor.rel.num=1
So I have the following script:
#!/bin/bash
BUILDVERFILE="version.properties"
PATCH=`grep "patch.rel.num" ${BUILDVERFILE} | awk {'print $1'}`
SQA=`grep "sqa.num" ${BUILDVERFILE} | awk {'print $1'}`
MAJOR=`grep "major.rel.num" ${BUILDVERFILE} | awk {'print $1'}`
BUILD=`grep "build.num" ${BUILDVERFILE} | awk {'print $1'}`
MINOR=`grep "minor.rel.num" ${BUILDVERFILE} | awk {'print $1'}`
P=`echo $PATCH | tr -d .=[:alpha:]`
S=`echo $SQA | tr -d .=[:alpha:]`
MA=`echo $MAJOR | tr -d .=[:alpha:]`
B=`echo $BUILD | tr -d .=[:alpha:]`
MI=`echo $MINOR | tr -d .=[:alpha:]`
VERSION=$MA.$MI.$P.$S.$B
echo $VERSION #
I end up with the value of .002 ?? Seems like it's only getting the last portion because if I run the script thru "bash -x" I get:
...
+ VERSION=$'3
.1
.0
.01
.002
'
+ echo $'3
.1
.0
.01
.002
'
.002
I don't know if this is a configuration issue or a hardware issue, but I have a Kinesis Advantage USB keyboard and for some reason the F3-F5 keys aren't responding as they used to. They don't respond to anything and, when I tried using F5 on Emacs, it said <XF86AudioNext> is undefined, so I guess it's a weird mapping problem.
Any idea how I could remap them to the original meaning?
I'm running Debian (Squeeze) and I have a toshiba portege m700. It has five buttons on the front just under the screen, which are the only ones accessible when you flip the screen over into tablet mode. One of them is for rotating the screen, and another is for switching to external display. I want to remap the remaining three to control, alt and super so that I can use shortcuts with the stylusThe problem is, when I used showkey to find out the key codes, I found out that each button generates more than one key code:Button 1:
key 126 press >> super_r, although this is distinct from the actual super key (125)
key 7 press >> 6
key 7 release
key 126 release
I*am using Kubuntu 10.04. I would like to change some of the standard shortcut keys for bash (terminal).
I want:
Ctrl-C to copy the selected text to the clipboard.
Ctrl-V to paste from the clipboard into the terminal.
Ctrl-Z to undo.
Ctrl-Shift-C (or even better, Super-C) to terminate the command.
Ctrl-Shift-Z (or Super-Z) to be the background command.
I*don't even know what Ctrl-V did before, some I*won't worry about remapping it.
EDIT:*I*have no idea what is putting the * char after each "I". Maybe this is a non-breaking space?
I'm using rxvt-unicode version 9.06 at Ubuntu 9.10. I was used to aterm, where you can use SHIFT + up/down arrow to scroll the printed output with a line up or down. You can also use SHIFT + pgup/pgdown to scroll one screen up or down.In urxvt I can use the pgup/pgdown combination as well, but can't use the up/down arrow combination. It is very useful to be able to scroll by single lines. Do you have any idea how to enable the up/down arrow scrolling?
View 1 Replies View RelatedI did read the grammar section of xmodmap but still couldn't figure out how I could do it.
View 1 Replies View RelatedI'm working with Terminal (Mac OS X), but I think this is a built-in part of Linux. Sometimes, when I execute a command, Terminal returns a new, indented line with just -> on the line. It seems like it's waiting for something, but I don't know if it requires action on my part or not. Pressing enter simply returns another, identical line. When I Ctrl + C, it says Aborted, meaning something was clearly processing.
View 2 Replies View Relatedhow to echo an '-n' without a new line?
View 8 Replies View RelatedI execute an application from a script file and redirect stdin to it from here-doc like this:
my_cli << HERE_DOC
enable
configure
10
exit
exit
HERE_DOC
This works as expected, but I don't see neither the input nor the app output. The application is an interactive prompt written in C. When I interact manually with it, I see the prompt itself and responses to my input, but when I execute the aforementioned script I see nothing. I would like it to print the input and the output as if a real user was typing. Do you know how to achieve that?