About
Docs
Files
Support
Index

Essentials
AutoDocs
Library functions
Cooperate
Process mastering
Debug
Own debugging kit
FGE
Smart modeid pick
Loader
Shared lib. loader
Macros
Helper macros
Structs
All the structures
Logs
Library changelogs
Tools
Progs baked inside

Tools
amiscreen0.3
ansifilter0.1
auto2guide0.1
ccfilter0.1
chipset0.1
cputype0.1
device640.1
dupfilter0.1
expandlogs0.1
findsm0.2
fmpp0.1
fsmount0.1
genanim0.3
gensymtab0.1
hashlab0.4
ktm0.6
linkpoint0.1
logo2ilbm0.1
lpradio0.1
lzwpack0.1
minism0.2
mkheader0.1
modeidctrl0.1
mss0.6
multisum0.3
newterm0.2
numconv0.1
palhack1.1
patmat0.1
pfr0.2
playamitape0.1
qdbflags0.1
qfill0.1
resmodinit0.2
sadctrl0.2
saveassign0.1
setanim0.2
systime0.1
tokendump0.1
uassign0.1
viewlogo0.1
waitback0.4
wrapmount0.1



F
I
N
D
S
M

findsm-0.2
------------

---

This readme describes  'findsm', a program that allows to find modeid or to
translate resolution  query into usable modeid and/or depth. The reason why
this tool exists is that i  was unable to find anything that would allow me
to ask for the screenmode purely from shell.

---

NEWS:

   [28-Feb-2011]   0.2   * Largely enhanced by  'qdev'  components and with
                           some additional options.

---

NOTES:

[*]
Requires  68020(no FPU)+, OS2.04(theoretically)+,  16+ kilo of free memory.

[*]
Please note that from now on resolution query can contain lower case  'x'es
only!

---

HELP:

   > findsm ?

     QUERY,B=BIN/S,O=OCT/S,I=DEC/S,H=HEX/S,A=ALIGN/S,S=SPFX/S,W=WPFX/S,
     C=COLORS/S,M=MODEID/S,D=DEPTH/S



   QUERY       -  Modeid or  resolution with optional range or monitor plus
                  screen  related  flags. See  'qdev_findgfxentry.txt'  for
                  more  details or refer to autodocs on 'nfo_findgfx#?()' .
                  This  argument can also take keywords such as 'WORKBENCH'
                  - its current modeid, 'ACTIVE' - modeid of -this- screen,
                  and 'COUNT' - number of all screenmodes.

   B=BIN/S     -  Output notation is binary.

   O=OCT/S     -  Output notation is octal.

   I=DEC/S     -  Output notation is decimal.

   H=HEX/S     -  Output notation is hexadecimal(default).

   A=ALIGN/S   -  Align the output to maximum number of zeros.

   S=SPFX/S    -  Append single character prefix.

   W=WPFX/S    -  Append double character prefix.

   C=COLORS/S  -  Convert depth(bits) to number of colors.

   M=MODEID/S  -  Output modifier. Formely it is a switch, but can also act
                  as a keyword. This  is  useful  when constructing command
                  line string.

   D=DEPTH/S   -  Output modifier. Formely it is a switch, but can also act
                  as a keyword. This  is  useful  when constructing command
                  line string.

---

USAGE:

   ; Fail safe search in graphics boards.
   findsm "1600x1200x32 0x000AFFFF 0xFFFFFFFF similar"

   ; Find something of "640" that allows to display at
   ; least 16 colors.
   findsm "640x480x4 ycofact"

   ; Check if "PAL" monitor is loaded
   findsm "320x256x1 P?L"

   ; Check how many screenmodes there is in the OS.
   ; This can be used to determine if video driver did
   ; start or not.
   failat 21
   set modecount "`findsm count dec`"
   <video driver>
   if "$modecount" eq "`findsm count dec`" val
     echo "Your video driver did not initialize!"
   else
     echo "All okay chief!"
   endif
   unset modecount

   ; Launch a prog by using just the resolution. Args:
   ; 'm' and 'd' come with what '<prog>' expects. Use
   ; 'echo' command to see the output on your system.
   <prog> `findsm "800x600x7" m "mode " d "depth " h s`

---
megacz
    


No more fear cus pure HTML is here!
Copyright (C) 2013-2014 by Burnt Chip Dominators