Standard escape codes are prefixed with Escape:
- Ctrl-Key: 
^[ - Octal: 
\033 - Unicode: 
\u001b - Hexadecimal: 
\x1B - Decimal: 
27 
| ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────── | |
| │ printf Format Specifiers │ | |
| │ ┌──────────┬──────────────────────────────────────────────────┬───────────────────────────────────────┐ │/** printf format specifiers | |
| │ │ Specifier│Description │ Example Output │ │ * ███ ▄████████ ███ ▄████████ ███ █▄ ▄██████▄ | |
| │ ├──────────┼──────────────────────────────────────────────────┼───────────────────────────────────────┤ │ *▀█████████▄ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███ | |
| │ │ %d │Signed decimal integer │ printf("%d", 42); // 42 │ │ | 
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #define da_append(xs, x) \ | |
| do { \ | |
| if ((xs)->count >= (xs)->capacity) { \ | |
| if ((xs)->capacity == 0) (xs)->capacity = 256; \ | |
| else (xs)->capacity *= 2; \ | |
| (xs)->items = realloc((xs)->items, (xs)->capacity*sizeof(*(xs)->items)); \ | |
| } \ | 
| package cache | |
| import ( | |
| "sync" | |
| "time" | |
| ) | |
| // Cache is a basic in-memory key-value cache implementation. | |
| type Cache[K comparable, V any] struct { | |
| items map[K]V // The map storing key-value pairs. | 
| function RenameWithQuickfix() | |
| local position_params = vim.lsp.util.make_position_params() | |
| local new_name = vim.fn.input "New Name > " | |
| position_params.newName = new_name | |
| vim.lsp.buf_request(0, "textDocument/rename", position_params, function(err, method, result, ...) | |
| -- You can uncomment this to see what the result looks like. | |
| if false then | |
| print(vim.inspect(result)) | 
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/exec" | |
| "syscall" | |
| ) | |
| func main() { |