# kernel hacking

**URL:** <https://community.unix.com/t/kernel-hacking/313581>\
**Category:** UNIX for Advanced & Expert Users\
**Created:** [July 16, 2012, 2:57am UTC](https://community.unix.com/t/kernel-hacking/313581 "2012-07-16T02:57:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr\_mabuse](https://community.unix.com/letter_avatar/dr_mabuse/32/5_5575768a8748004e209b776fc1b2916d.png) [@dr\_mabuse](https://community.unix.com/u/dr_mabuse)\
**Post date:** [July 16, 2012, 2:57am UTC](https://community.unix.com/t/kernel-hacking/313581/1 "2012-07-16T02:57:06Z")

</div>

As you know we can output a string to the kernel /init/main.c  
using printk.  
I want to know if there are other function to make the appearance look better. is there any drawing function? color settings? if there is, i would thank if you name a few.

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/5_5575768a8748004e209b776fc1b2916d.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [July 16, 2012, 11:55am UTC](https://community.unix.com/t/kernel-hacking/313581/2 "2012-07-16T11:55:06Z")

</div>

Well, you're printing to a terminal, so you could try standard ANSI color escape sequences.

[List of them](http://bluesock.org/~willg/dev/ansi.html)

A raw Linux terminal doesn't support all of them but definitely has color. I'm not sure whether it'll work at the kernel level or not but worth a try.
