What is the difference between console-based and Xwindow-based application?
Can I say the application working well in Xwindows can work in console?
Can I say the application working well in console cann't work in Xwindow perhaps.
Eg, ncurses is console-based and Imlib2 is Xwindow-based.
What's the difference between a book and a graphic novel?
Console applications don't have any fancy stuff and are (for the most part) completely keyboard-driven.
X11 applications need an X server and additional libraries, and can/should be able to handle both keyboard and pointer (mouse/tablet/...) events.
A console application can run in X11 though a "terminal emulation" (xterm/konsole/gnome-terminal/...) that will translate ASCII characters to images. An X11 application won't run without an X11 server.
Fundamentally there's no difference between X11 applications and console applications. They're both just processes. The X11 application uses a library that opens an extra socket, then talks to it in a very particular way.