Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31

Thread: Tilda key not working in terminal only

  1. #1
    Join Date
    Feb 2011
    Beans
    15

    Tilda key not working in terminal only

    Hey all,

    I'm using Ubuntu 12.04 with the awesome window manager.
    I've been playing around with adding new fonts and getting a nice color scheme to work but now the tidal key doesn't work in terminal. It works in gedit and other applications (example ~~~~~~~~~) but in terminal and subsequently <strike>vim</strike> I can't use it.

    Can anyone help me solve this problem? Why did this happen? Where can I go to fix the problem?

    Update:
    It works in vim, which is running through the terminal. I just isn't working in terminal.
    Last edited by tliimfee; February 22nd, 2013 at 01:29 PM. Reason: Additional information

  2. #2
    Join Date
    Feb 2011
    Beans
    15

    Re: Tilda key not working in terminal only

    I'd greatly appreciated any help people would be able to provide or any suggestions as to why this is happening.

  3. #3
    Join Date
    Feb 2011
    Beans
    15

    Re: Tilda key not working in terminal only

    I'm not sure if this helps but the profile I'm currently using for my gnome-terminal as found in .gconf is as follows

    Code:
    <?xml version="1.0"?>
    <gconf>
    	<entry name="word_chars" mtime="1361533020" type="string">
    		<stringvalue>-A-Za-z0-9,./?%&amp;#:_=+@~</stringvalue>
    	</entry>
    	<entry name="font" mtime="1361543242" type="string">
    		<stringvalue>Source Code Pro Medium 12</stringvalue>
    	</entry>
    	<entry name="use_system_font" mtime="1361543242" type="bool" value="false"/>
    	<entry name="use_theme_colors" mtime="1361543242" type="bool" value="false"/>
    	<entry name="palette" mtime="1361534385" type="string">
    		<stringvalue>#000000000000:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC</stringvalue>
    	</entry>
    	<entry name="alternate_screen_scroll" mtime="1361543242" type="bool" value="true"/>
    	<entry name="background_color" mtime="1361543242" type="string">
    		<stringvalue>#000000000000</stringvalue>
    	</entry>
    	<entry name="visible_name" mtime="1361543242" type="string">
    		<stringvalue>Default</stringvalue>
    	</entry>
    	<entry name="bold_color" mtime="1361543242" type="string">
    		<stringvalue>#000000000000</stringvalue>
    	</entry>
    	<entry name="foreground_color" mtime="1361543242" type="string">
    		<stringvalue>#0000FFFF0000</stringvalue>
    	</entry>
    </gconf>

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    6,008

    Re: Tilda key not working in terminal only

    Hi and welcome to the Ubuntu Forums

    Please don't repeat your plea for help more than once every 24 hours! Then it is enough to post a new reply with the text 'bump'.

    I can get the tilde character pressing the F12 key with some different keymaps. Try that as a starter!

    What keymap are you using (what language)?

    You can find it out with the following command
    Code:
    setxkbmap -query
    and change it (set it) with for example
    Code:
    setxkbmap us
    Code:
    setxkbmap de
    Code:
    setxkbmap es

  5. #5
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,038
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Tilda key not working in terminal only

    Quote Originally Posted by tliimfee View Post
    I'd greatly appreciated any help people would be able to provide or any suggestions as to why this is happening.
    Are you aware that the "~" key is interpreted by the shell as a synonym for $HOME and not passed through to subsequent layers?

    Try entering "ls ~" at a command prompt; expect to see a listing of all files in your home directory as a result. If you do, then things are working as designed...
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  6. #6
    Join Date
    Feb 2011
    Beans
    15

    Re: Tilda key not working in terminal only

    Hey thanks so much for the replies and sorry about repeating the post.

    My current keymap is set to the correct language,
    Code:
    rules:      evdev
    model:      dell101
    layout:     gb
    and this is confirmed as every other application correctly interrupts ~,@ and " etc.

    I am also aware that ~ is shorthand for $HOME.
    The main issue is that the ~ character itself is not displayed.
    Code:
    ls ~
    is shown in the terminal as
    Code:
    ls
    and list the files in the current directory, not the home directory.
    Code:
    ls $HOME
    works as expected.
    Also any scripts that I write which use ~ do not run correctly as the ~ is omitted when they are executed and the character ~ cannot be copied and pasted into the terminal.

  7. #7
    Join Date
    Apr 2012
    Beans
    4,576

    Re: Tilda key not working in terminal only

    do you have any 'stty' commands in your .profile or .bashrc files?

  8. #8
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    6,008

    Re: Tilda key not working in terminal only

    What happens when you press the F12 key (can you see anything in the terminal window)?

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Tilda key not working in terminal only

    Quote Originally Posted by steeldriver View Post
    do you have any 'stty' commands in your .profile or .bashrc files?
    +1. I have this alias defined, it always helps when the terminal gets messed up:
    Code:
    alias c='reset; stty sane; clear'

  10. #10
    Join Date
    Feb 2011
    Beans
    15

    Re: Tilda key not working in terminal only

    F12 doesn't display any character.
    I don't have any stty commands in .profile or .bashrc
    And the commands
    Code:
    reset; stty sane; clear
    didn't fix the problem.

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •