Giter Club home page Giter Club logo

conpix's Introduction

c0npix by rofl0r
================

display your images in a 256 color xterm!

export TERM=xterm-256color before usage

needs the following libraries
- ncurses
- lepton (aka liblept aka leptonica)
- tiff
- png

AUTOMATED LIB INSTALL
---------------------
OS X: get macports and run: sudo port install leptonica tiff libpng ncurses

debian/ubuntu: sudo apt-get install libleptonica-dev libncurses-dev pkg-config

COMPILATION
-----------
run make

LICENSE
-------
GNU GPL v3

MISC
----
made with eclipse CDT (managed build)

the flickering at the end is caused by restoring the original colors, so you can keep on working with your xterm.

conpix's People

Contributors

pepa65 avatar rofl0r avatar sandsmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sandsmark pepa65

conpix's Issues

Can't compile with g++ 4.8.2 on ubuntu

Getting next error

$./build.sh                                                                     
In file included from ../NsNcurses.h:12:0,
                 from ../ConsoleWindow.h:15,
                 from ../ConsoleWindow.cpp:9:
../ConsoleWindow.cpp: In member function ‘bool ConsoleWindow::useColorPair(int)’:
../ConsoleWindow.cpp:159:13: error: expected type-specifier before ‘chtype’
  lastattr = COLOR_PAIR(pair+1);
             ^
../ConsoleWindow.cpp:159:13: error: expected ‘>’ before ‘chtype’
../ConsoleWindow.cpp:159:13: error: expected ‘(’ before ‘chtype’
../ConsoleWindow.cpp:159:13: error: ‘chtype’ was not declared in this scope
../ConsoleWindow.cpp:159:13: note: suggested alternative:
In file included from ../NsNcurses.h:12:0,
                 from ../ConsoleWindow.h:15,
                 from ../ConsoleWindow.cpp:9:
/usr/include/curses.h:150:23: note:   ‘ncurses::chtype’
 typedef unsigned long chtype;
                       ^
../ConsoleWindow.cpp:159:31: error: expected ‘)’ before ‘;’ token
  lastattr = COLOR_PAIR(pair+1);
                               ^
g++: error: ./ConsoleWindow.o: No such file or directory
mv: cannot stat ‘a.out’: No such file or directory
Finished building target: conpix
you can now run testt/conpix executable

Not building

Because this repo was 'discontinued', I started working with concol, but maybe just getting something smaller like this repo to use is easier..? In any case, after ./build.sh I get:

In file included from ../NsNcurses.h:14,
                 from ../ConsoleWindow.h:15,
                 from ../ConsoleWindow.cpp:9:
../ConsoleWindow.cpp: In member function ‘void ConsoleWindow::getSize(int&, int&)’:
../ConsoleWindow.cpp:167:16: error: expected unqualified-id before ‘(’ token
  167 |   x = ncurses::getmaxx(ncurses::stdscr);
      |                ^~~~~~~
../ConsoleWindow.cpp:168:16: error: expected unqualified-id before ‘(’ token
  168 |   y = ncurses::getmaxy(ncurses::stdscr);
      |                ^~~~~~~
g++: error: ./ConsoleWindow.o: No such file or directory
mv: cannot stat 'a.out': No such file or directory
Finished building target: conpix
you can now run testt/conpix executable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.