Skip to content

Instantly share code, notes, and snippets.

@agauniyal
agauniyal / allocterminal.cpp
Created January 27, 2018 15:26 — forked from kingseva/allocterminal.cpp
Example redirecting cout/stdout to allocated terminal in GUI programs.
#include "rang.hpp"
#include <windows.h>
#include <cstdlib>
void BindStdHandlesToConsole()
{
//TODO: Add Error checking.
// Redirect the CRT standard input, output, and error handles to the console
@agauniyal
agauniyal / startup_logs.txt
Created January 1, 2021 07:45
Startup logs
-- Journal begins at Wed 2020-12-09 15:33:51 IST, ends at Fri 2021-01-01 16:15:54 IST. --
Jan 01 13:02:23 manjaro kernel: TSC synchronization [CPU#0 -> CPU#8]:
Jan 01 13:02:23 manjaro kernel: Measured 4524 cycles TSC warp between CPUs, turning off TSC clock.
Jan 01 13:02:23 manjaro kernel: #9 #10 #11 #12 #13 #14 #15
Jan 01 13:02:23 manjaro kernel: ACPI BIOS Error (bug): Failure creating named object [\SMIB], AE_ALREADY_EXISTS (20200925/dsfield-637)
Jan 01 13:02:23 manjaro kernel: ACPI Warning: NsLookup: Type mismatch on SMIB (Integer), searching for (RegionField) (20200925/nsaccess-697)
Jan 01 13:02:23 manjaro kernel: ACPI BIOS Error (bug): Could not resolve symbol [\_SB.PCI0.GPP4.WLAN], AE_NOT_FOUND (20200925/dswload2-162)
Jan 01 13:02:23 manjaro kernel: ACPI Error: AE_NOT_FOUND, During name lookup/catalog (20200925/psobject-220)
Jan 01 13:02:23 manjaro kernel: Expanded resource Reserved due to conflict with PCI Bus 0000:00
Jan 01 13:02:23 manjaro kernel: pci 0000:00:00.2: can't derive routing for PCI INT