Converting octal to hexadecimal is kinda ugly, as _everyone_ knows / remembers these constants as octal. Possibly 'octal!' should be defined in druntime ? By the way, did you look for other occurences of octal numbers, termios is surely not the only place ?