change call point of set_rawmode()