Ubuntu – ny terminal viewer of CHM files in Ubuntu

chmcommand line

I did not manage to find anyone.
I have a problem that I need to access my CHM files over network and over VPN which makes the requirement rather slow with the normal CHM viewer.
Therefore, I thought about terminal viewer of the format.

There are html viewers of terminal, elinks/lynx, but none of them can maintain chm features such searches in different environments.
The standard of CHM viewers is h.exe in Windows. Anything that can reach even near it with search capabilities would be nice in terminal.

Is there any terminal viewer of CHM files in Ubuntu?

Best Answer

Not a perfect viewer but a workaround.

  1. Install archmage: a CHM(Compiled HTML) Decompressor,
  2. extract the file
  3. open the output in a non-graphical (text-mode) web browser, e.g. lynx:

    sudo apt-add-repository universe
    sudo apt-get update
    sudo apt-get install archmage
    
    sudo apt-get install lynx-cur
    
    archmage file.chm output_dir
    
    lynx output_dir
    

Another extract tool is extract_chmLib, also in the universe repository:

sudo apt-get install libchm-bin
extract_chmLib file.chm output_dir
Related Question