Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

escape-characters

How do I clear the Gnome terminal history?

August 7, 2022 by Magenaut

When we use clear command or Ctrl+L in terminal, it clears terminal but we can still scroll back to view the last used commands. Is there a way to completely clear the terminal?

Categories Q&A, Unix & Linux Tags command-history, escape-characters, gnome-terminal, terminal Leave a comment

How to avoid escape sequence attacks in terminals?

August 7, 2022 by Magenaut

Reading the details of CVE-2009-4487 (which is about the danger of escape sequences in log files) I am a bit surprised.

Categories Q&A, Unix & Linux Tags escape-characters, security, special-characters, terminal-emulator, xterm Leave a comment

What does the ^ character mean in sequences like ^X^I?

August 7, 2022 by Magenaut

I was reading this message from the zsh mailing list about key bindings and I’d like to know which key I need to press:

Categories Q&A, Unix & Linux Tags escape-characters, keyboard, terminal Leave a comment

Hide and unhide cursor with tput

August 6, 2022 by Magenaut

The curs_set routine sets the cursor state to invisible,
normal, or very visible for visibility equal to 0, 1, or 2
respectively. If the terminal supports the visibility re-quested, the previous cursor state is returned; otherwise,
ERR is returned.

Categories Q&A, Unix & Linux Tags escape-characters, terminal, tput Leave a comment

How to use less in a script without getting ESC escape characters?

August 6, 2022 by Magenaut

When I use less at the command line the output is like
enter image description here

Categories Q&A, Unix & Linux Tags escape-characters, less, scripting Leave a comment

Escape sequences with “echo -e” in different shells

August 6, 2022 by Magenaut

I just noticed that it seems like the flag -e does not exist for the echo command in my shell on Linux.
Is this just a messed up setting or is it “normal”?

Categories Q&A, Unix & Linux Tags echo, escape-characters, shell Leave a comment

How to prevent random console output from breaking the terminal?

August 6, 2022 by Magenaut

There are many questions on SE that show how to recover from terminal broken by cat /dev/urandom. For those that are unfamiliar with this issue – here what it is about:

Categories Q&A, Unix & Linux Tags escape-characters, output, terminal Leave a comment
Newer posts
← Previous Page1 Page2
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress