#!/bin/bash
Y=1200 # Position on paper
X=1200
H=150 # Height in pixels
W=19 # Width in pixels / 8
printf "\x1b*t300R" # Set 300DPI
printf "\x1b*b0M" # Set graphics mode 0, raw bytes
printf "\x1b*p${Y}Y" # Move cursor Y
printf "\x1b*p${X}X" # Move cursor X
printf "\x1b*r1A" # Start raster graphic at cursor
for ((M=0; M<H; M++))
do
printf "\x1b*b${W}W" # Tell it this line is W bytes of pixel data.
# Actual data bytes. Each bit is one column. \xff is 11111111
for ((N=0; N<W; N++)) ; do printf "\xff" ; done
done
# End graphics and reset (i.e. restore cursor, etc)
printf "\x1b*rC"
If you run this and pipe its output into a PCL printer, it prints a 1/2" by 1/2" black square in the middle of the page via raster graphics.
Hi All
I'm not sure if anyone else notices this or not - however when I view the unix.com forums in Windows, the flash logo at the top of the page absolutely kills my performance - CPU usage rockets to 100%! If you open the task manager and monitor performance, and slowly scroll down so that the... (1 Reply)
hiho,
where are the frisky CDE admins.... ;-)
how can i change the welcome logo?
i found the /usr/dt/config/C/Xresources
and the entry:
Dtlogin*logo*bitmapFile:
but when i enter my own *.bm or *.xpm file the screen use a black logo.... i think i am using the wrong resolution for my picture...... (3 Replies)
If you have a graphic display you see some sort of logo in OpenBoot immediately after a reset or when you run the banner command. With most systems, you see a spiffy multicolor logo generated by a routine on the video card. But if you have a low-rent video card you just see a plain monochrome Sun... (2 Replies)
I saw this on another board, and burst out laughing.
http://www.brandsoftheworld.com/brands/0011/0070/brand.gif
Apparently it's a new logo (may even be a new name) for a clothing line.
Check them out: www.A-Style.it (9 Replies)
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Dear Guys ..
I'm going to Upgrade one of the servers AIX 6.1
I want to stop rootvg mirror to save the mirror then upgrade to AIX 6.1 this is to help me in rollback if something goes wrong but ..
can anyone help me how to make sure that system is relay mirrored and how to know that second... (10 Replies)
Hello,
this is my contribution to open community (LINK):
tovic.eu/design/logo/gnu-linux/
If you find it interesting, use it ...
Best regards (0 Replies)
Discussion started by: Skulptron
0 Replies
LEARN ABOUT NETBSD
grolj4
GROLJ4(1) General Commands Manual GROLJ4(1)NAME
grolj4 - groff driver for HP Laserjet 4 family
SYNOPSIS
grolj4 [ -lv ] [ -d[n] ] [ -cn ] [ -ppaper_size ] [ -wn ] [ -Fdir ] [ files... ]
It is possible to have whitespace between a command line option and its parameter.
DESCRIPTION
grolj4 is a driver for groff that produces output in PCL5 format suitable for an HP Laserjet 4 printer.
There is an additional drawing command available:
D'R dh dv'
Draw a rule (solid black rectangle), with one corner at the current position, and the diagonally opposite corner at the current
position +(dh,dv). Afterwards the current position will be at the opposite corner. This generates a PCL fill rectangle command,
and so will work on printers that do not support HPGL/2 unlike the other D commands.
OPTIONS -cn Print n copies of each page.
-l Print the document with a landscape orientation.
-d [n] Use duplex mode n: 1 is long-side binding; 2 is short-side binding; default is 1.
-psize Set the paper size to size, which must be one of letter, legal, executive, a4, com10, monarch, c5, b5, dl.
-v Print the version number.
-wn Set the default line thickness to n thousandths of an em. If this option isn't specified, the line thickness defaults to 0.04 em.
-Fdir Prepend directory dir/devname to the search path for font and device description files; name is the name of the device, usually lj4.
The following four commands are available additionally in the font description files:
pclweight N
The integer value N must be in the range -7 to +7; default is 0.
pclstyle N
The integer value N must be in the range 0 to 32767; default is 0.
pclproportional N
A boolean flag which can be either 0 or 1; default is 0.
pcltypeface N
The integer value N must be in the range 0 to 65535; default is 0.
FILES
/usr/share/groff_font/devlj4/DESC
Device description file.
/usr/share/groff_font/devlj4/F
Font description file for font F.
/usr/share/tmac/lj4.tmac
Macros for use with grolj4.
BUGS
Small dots.
SEE ALSO lj4_font(5), groff(1), troff(1), groff_out(5), groff_font(5), groff_char(7)Groff Version 1.19.2 July 30, 2004 GROLJ4(1)