More vs less Linux


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users More vs less Linux
# 8  
Old 01-22-2014
Quote:
What other advantages does less have over more?
It supports input pre-processing.
On some systems (Linux in this case) you can check the content of lesspipe.sh
to get an idea on how it opens compressed and other types of not plain text files directly:
Code:
# echo $LESSOPEN
|/usr/bin/lesspipe.sh %s
# file /usr/bin/lesspipe.sh
/usr/bin/lesspipe.sh: Bourne shell script text executable

Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Simple sed command not working; could be a Mac/Linux vs. PC/Linux issue

Hello, I am on a Mac and trying to clean up some monthly files with a very simple SED: sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt (from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file) then output to output.txt Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies

2. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies
Login or Register to Ask a Question
glutMouseFunc(3GLUT)						       GLUT						      glutMouseFunc(3GLUT)

NAME
glutMouseFunc - sets the mouse callback for the current window. SYNTAX
void glutMouseFunc(void (*func)(int button, int state, int x, int y)); ARGUMENTS
func The new mouse callback function. DESCRIPTION
glutMouseFunc sets the mouse callback for the current window. When a user presses and releases mouse buttons in the window, each press and each release generates a mouse callback. The button parameter is one of GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, or GLUT_RIGHT_BUTTON. For systems with only two mouse buttons, it may not be possible to generate GLUT_MIDDLE_BUTTON callback. For systems with a single mouse but- ton, it may be possible to generate only a GLUT_LEFT_BUTTON callback. The state parameter is either GLUT_UP or GLUT_DOWN indicating whether the callback was due to a release or press respectively. The x and y callback parameters indicate the window relative coordinates when the mouse button state changed. If a GLUT_DOWN callback for a specific button is triggered, the program can assume a GLUT_UP callback for the same button will be generated (assuming the window still has a mouse callback registered) when the mouse button is released even if the mouse has moved outside the window. If a menu is attached to a button for a window, mouse callbacks will not be generated for that button. During a mouse callback, glutGetModifiers may be called to determine the state of modifier keys when the mouse event generating the call- back occurred. Passing NULL to glutMouseFunc disables the generation of mouse callbacks. SEE ALSO
glutKeyboardFunc, glutMotionFunc, glutSpaceballButtonFunc, glutButtonBoxFunc, glutTabletButtonFunc, glutGetModifiers AUTHOR
Mark J. Kilgard (mjk@nvidia.com) GLUT
3.7 glutMouseFunc(3GLUT)