next up previous contents index
Next: 13.13.7 direct_cons_trygetchar: read an Up: (X86 PC) Base Environment: Previous: 13.13.5 direct_cons_getchar: wait for

13.13.6 direct_cons_putchar: write a character to the video console

   

SYNOPSIS

#include <oskit/x86/pc/direct_console.h>

void direct_cons_putchar(unsigned char c);

DESCRIPTION

Outputs the indicated character on the video console. Handles ``\n'' (newline), ``\r'' (carriage return), ``\b'' (backspace), and ``\t'' (tab) in addition to printable ASCII characters. Tabs are expanded to spaces (with stops are every 8 columns) and lines are automatically wrapped at 80 characters. Newline implies a carriage return.

PARAMETERS

c
Character to be printed.

DEPENDENCIES

base_critical_enter
13.2.5
base_critical_leave
13.2.5
phystokv
13.6.2
outb_p
13.3.7
memcpy
12.4.18



Utah Flux Research Group