linux: add editlib for console input

merge