Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Here is how to get rid of the annoying ctrl-C issue in nios2-term

Hi All,

For all newbies like me annoyed by this issue (pressing ctrl-c inside a nios2 shell sompletly close the shell instead of the application run) here is a quick workaround

type

stty intr '$'

in the nios2-terminal shell.

This will transform the ctrl-c of the shell into ctrl-$ and pressing that will interrupt the run application and not the nios2-terminal.

Hope that will help someone...

Lior

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    where can I find the application for using your command "stty intr '$'"

    This command was not found by my uClinux kernel.

    Urmel
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks that's really helpful! I thought I saw this somewhere but couldn't find it and have struggled with it the entire time. I use telnet when possible to run applications to avoid the problem.

    @ Urmel: in menuconfig/xconfig, customize libraries & apps, Busybox > Coreutils > stty
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you Ykozlov!

    So we helped each other :)

    You by showing me where to find the app and I by digging out the thread.

    Urmel