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

10.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
10.2.5
base_critical_leave
10.2.5
phystokv
10.6.2
outb_p
10.3.7
memcpy
9.4.18



University of Utah Flux Research Group