Today at around 02:15 hours I learnt to use GNU Readline in C programs. No particular reason for me to do so, except that the recent changes in build infrastructure of GNU Parted initiated by Jim Meyering had suddenly caused the 'configure' script from detecting my system's Readline libraries. After my sleep-deprived eyes had failed to detect any particular bug in configure.ac, I landed up at the GNU Readline manual.
I must say I have not yet solved the Parted problem, but managed to scrible an elementary program with ample help from the manual. Find it here.
Dependencies:a. readlineb. readline-develc. termcapd. libtermcape. libtermcap-devel
Compilation instructions:$ gcc readline1.c -lreadline -ltermcap