C based GUI text editor