Skip to content

Instantly share code, notes, and snippets.

View mrchipset's full-sized avatar
🎯
Focusing

Mr. Chip mrchipset

🎯
Focusing
View GitHub Profile
@fnky
fnky / ANSI.md
Last active July 21, 2024 16:39
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@umq
umq / RotateDisplay.cs
Created May 23, 2011 12:44
Rotate secondary display with ChangeDisplaySettingsEx()
using System;
using System.Runtime.InteropServices;
namespace RotateDisplayTest
{
class RotateDisplay
{
static void Main(string[] args)
{
uint deviceID = 1; // zero origin (i.e. 1 means DISPLAY2)