Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| # Installation on Dell XPS 9570 | |
| # Connect to Internet | |
| wifi-menu | |
| # Sync clock | |
| timedatectl set-ntp true | |
| # Create three partitions: |
| #include <stdio.h> | |
| #include <assert.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| int a = 10; | |
| assert(a != 10); | |
| printf("end of program\n"); | |
| return 0; | |
| } |
| import i3ipc | |
| import os | |
| SET_BRIGHTNESS = 'xbacklight -set ' | |
| GET_BRIGHTNESS = 'xbacklight' | |
| i3 = i3ipc.Connection() | |
| class BrightnessController: | |
| def __init__(self): | |
| self.brightness_map = {} |
| #!/usr/bin/env bash | |
| # Get a random music file from modarchive.org and play it. | |
| # Uses VLC. Many other players could work too. | |
| # Check for needed programs. Exit if they are not found. | |
| #if ! which xmp > /dev/null; then echo "xmp not installed. Try: apt install xmp"; exit 1; fi | |
| if ! which vlc > /dev/null; then echo "VLC not installed. Try: apt install vlc"; exit 1; fi | |
| if ! which curl > /dev/null; then echo "curl not installed. Try: apt install curl"; exit 1; fi | |
| # Check if the user wants a specific module |
| // you need this in your cargo.toml | |
| // reqwest = { version = "0.11.3", features = ["stream"] } | |
| // futures-util = "0.3.14" | |
| // indicatif = "0.15.0" | |
| use std::cmp::min; | |
| use std::fs::File; | |
| use std::io::Write; | |
| use reqwest::Client; | |
| use indicatif::{ProgressBar, ProgressStyle}; |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in | |
| all copies or substantial portions of the Software. |
Please see here: contour-terminal/vt-extensions
Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output,
except that it's not using the rare DCS but rather the well known SM ? and RM ?. iTerm2 has now also adopted to use the new syntax instead of using DCS.
| #!/usr/bin/env bash | |
| ( | |
| for lib in $(pacman -Qql openssl | grep -o '[^/]*.so$'); do | |
| for repo in core extra community testing community-testing multilib multilib-testing staging community-staging multilib-staging gnome-Unstable kde-unstable; do | |
| sogrep $repo $lib | |
| done | |
| done | |
| ) | sort -u |
| // Zig version: 0.10.1 | |
| // Import the standard library. | |
| const std = @import("std"); | |
| // Define MyBoundedArray type. | |
| const maxLength = 32; | |
| const MyBoundedArray = std.BoundedArray(u8, maxLength); | |
| /// Takes a slice as a parameter and fills it with a message. |