Note that there are some explanatory texts on larger screens.

plurals
  1. POGUI programming to display record from disk in linux
    primarykey
    data
    text
    <p><strong>What I Need to achieve</strong><br> I have a huge set (around 1 million) of records (each records of 500 bytes) on disk (a specific file) with below format </p> <pre><code>=========================================================== |X|a,b,c|O|m,n,g|X|t,a,c|X|e,p,q|O|u,q,p|X|r,t,s|O|l,m,a| =========================================================== </code></pre> <p>The first field consist of flag ('X') represents valid filled data, flag ('O') consists of structured data. For example, first set contains a valid data with a,b,c as its data (assume of a structure).</p> <p>I need to display them on screen (linux) more like the <code>top</code> command output (in terms of simple - meaning keyboard input driven, dynamic GUI - like refresh, page-down options etc) like - </p> <pre><code>Display Record From No XXX Records Number Field 1 Field 2 Field 3 1 a b c 2 NA NA NA 3 t a c 4 o p q 5 NA NA NA 6 r t s 7 NA NA NA F5 [Referesh] Page-Down [Next Page] Page-Up [Prev Page] Ctrl+C [Exit] </code></pre> <p>Where the value XXX, would be entered by user and one page of records are shown. </p> <p><strong>Questions</strong> </p> <p>a. Since the display is similar to that of top/ atop command, Can you please let me know the base on which such commands are displaying the output? </p> <p>b. Any specific language (like GTK,QT etc) which are more suitable for such operations? Basically any better language apart from the one used in top/atop command. (May be this question is subjective) but would like to collect best opinion? </p> <p>c. Now, if I want to template the structure (by providing in config file) so that different kinds of structures can be read and displayed, From which language is this best possible? Note : Here I mean, file 1 contains structure A data only. file 2 contains structure B data. So while reading file 2, I would like to load the structure configuration of Structure B and run the tool for display. </p> <p>PS :<br> The above files are in-fact written to file with a normal C application (hinting the structure and its fields would be of C basic data type attributes).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload