about summary refs log tree commit diff stats
path: root/draw.c
Commit message (Expand)AuthorAgeFilesLines
* removed unnecessary bx, by, bw variablesAnselm R. Garbe2007-01-161-3/+3
* removed drawclient and drawall (they performed useless operations/consumed us...Anselm R. Garbe2007-01-151-20/+0
* implemented new color scheme accordingly to Sanders proposalAnselm R. Garbe2007-01-141-4/+4
* removed mode label stuffAnselm R. Garbe2007-01-141-1/+1
* removed client title barAnselm R. Garbe2007-01-141-6/+0
* added missing spaceAnselm R. Garbe2007-01-121-1/+1
* implemented nmaster appearance in mode label (using %u)Anselm R. Garbe2007-01-081-1/+1
* renamed drawtitle into drawclientAnselm R. Garbe2007-01-041-2/+2
* next version will contain updated copyright noticearg@mig292007-01-021-1/+1
* fixed diagnostic error messagearg@mig292006-12-081-1/+1
* removed the hardcoded fixed fallback, it is useless in non-Latin1 environmentsarg@mig292006-12-081-4/+1
* with this patch everything works fine for mearg@mig292006-12-071-5/+1
* don't use Xlocale crap, let's use locale.h insteadarg@mig292006-12-071-1/+1
* using the portable Xmb+UTF-8 way of life, will see if this works well...arg@mig292006-12-071-2/+4
* also setting LC_CTYPE onlyarg@mig292006-12-051-1/+1
* enforcing using fontsets even if they are incomplete for some encodingsarg@mig292006-12-051-4/+0
* made squares equally sized, and 1px biggerarg@mig292006-12-011-5/+5
* if client is focused, the emptysquare don't needs to be drawedarg@mig292006-12-011-3/+3
* and the winner isarg@mig292006-12-011-12/+17
* sander1 proposalarg@mig292006-12-011-7/+15
* doodarg@mig292006-12-011-8/+9
* less obtrusive indicator (only a top line)arg@mig292006-12-011-17/+4
* final2 indicatorarg@mig292006-12-011-8/+12
* removing the -1 on final indicators, looks cleanerarg@mig292006-12-011-3/+3
* final indicatorsarg@mig292006-12-011-2/+2
* changed things like I described in last mailarg@mig292006-12-011-15/+11
* improved tag indicatorarg@mig292006-12-011-6/+14
* applied Jukka's sizeof K&R compliance patch, applied Manuels' last-line print...arg@mig292006-11-261-2/+2
* added a similiar patch to Daves solution to indicate if there are clients wit...arg@mig292006-11-221-8/+24
* returning to old bar colorization behavior, like sander proposed for consiste...arg@mig292006-11-211-1/+1
* applied Gottox patchesarg@mig292006-11-211-5/+2
* code polishing, removed unnecessary newlinesAnselm R. Garbe2006-10-061-13/+1
* removed the stack position stuffAnselm R. Garbe2006-10-051-3/+1
* applied dave's highlight patch for big fontsAnselm R. Garbe2006-09-291-1/+1
* added symbols for different modesAnselm R. Garbe2006-09-291-1/+3
* added slight error check to getcolorarg@mmvi2006-09-261-1/+2
* applied Jukkas patcharg@mmvi2006-09-251-2/+2
* removed all dotile checksarg@mmvi2006-09-221-1/+1
* removed a bunch of lines through making function signatures more consistent w...Anselm R. Garbe2006-09-121-16/+8
* removed crappy variablesAnselm R. Garbe2006-08-281-2/+0
* applied sanders somepatches.patchAnselm R. Garbe2006-08-281-4/+5
* trying a different configurationAnselm R. Garbe2006-08-251-3/+6
* removed small 1px gap, somehow without it things feel betterAnselm R. Garbe2006-08-251-1/+1
* oopsAnselm R. Garbe2006-08-251-1/+1
* fixed typoAnselm R. Garbe2006-08-251-1/+1
* s/TILED/TILE/gAnselm R. Garbe2006-08-251-1/+1
* removed a bunch of lines, made mode symbols configurableAnselm R. Garbe2006-08-251-7/+2
* changed symbols for float/tiled mode, added mouse-driven mode toggle to butto...Anselm R. Garbe2006-08-251-1/+1
* small fix to separate client title from right-most tagAnselm R. Garbe2006-08-251-2/+2
* new color stuff/new rendering stuffAnselm R. Garbe2006-08-251-30/+19
d='n60' href='#n60'>60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95




                                                                                          
                                         

                                                
                                                                                                               


                                           
                                                                                                 







                                                                                           
                             




                             





                               






















                                                                                 


         
                             
                                                                                                                                 
                         

                                                                                                              
                                                                                                                    
                                                                                  
                                                                                                                            
                                                                                                                                                                                                                                                                                                       

                                                                                                                            
                                                                                                                                                                                                                   
                                                                          









                                                                                                                                                    
                                                                          
                                                                                                                                               
                                                      
                                                                                                                                                                                     
                                                                                                   
                                                                                                      


                                                                   



                                     
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Mu - http-client.mu</title>
<meta name="Generator" content="Vim/8.0">
<meta name="plugin-version" content="vim7.4_v2">
<meta name="syntax" content="none">
<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
<meta name="colorscheme" content="minimal">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #aaaaaa; background-color: #080808; }
body { font-size:12pt; font-family: monospace; color: #aaaaaa; background-color: #080808; }
.subxS2Comment a { color:inherit; }
.subxS1Comment a { color:inherit; }
.subxComment a { color:inherit; }
.subxH2Comment a { color:inherit; }
.subxH1Comment a { color:inherit; }
* { font-size:12pt; font-size: 1em; }
.muControl { color:#c0a020; }
.muRecipe { color: #ff8700; }
.LineNr { color:#444444; }
.Delimiter { color:#800080; }
.Constant { color:#00a0a0; }
.Special { color:#c00000; }
.Comment { color: #8080ff; }
-->
</style>

<script type='text/javascript'>
<!--

/* function to open any folds containing a jumped-to line before jumping to it */
function JumpToLine()
{
  var lineNum;
  lineNum = window.location.hash;
  lineNum = lineNum.substr(1); /* strip off '#' */

  if (lineNum.indexOf('L') == -1) {
    lineNum = 'L'+lineNum;
  }
  lineElem = document.getElementById(lineNum);
  /* Always jump to new location even if the line was hidden inside a fold, or
   * we corrected the raw number to a line ID.
   */
  if (lineElem) {
    lineElem.scrollIntoView(true);
  }
  return true;
}
if ('onhashchange' in window) {
  window.onhashchange = JumpToLine;
}

-->
</script>
</head>
<body onload='JumpToLine();'>
<a href='https://github.com/akkartik/mu/blob/master/http-client.mu'>https://github.com/akkartik/mu/blob/master/http-client.mu</a>
<pre id='vimCodeElement'>
<span id="L1" class="LineNr"> 1 </span><span class="Comment"># example program: reading a URL over HTTP</span>
<span id="L2" class="LineNr"> 2 </span>
<span id="L3" class="LineNr"> 3 </span><span class="muRecipe">def</span> <a href='http-client.mu.html#L3'>main</a> [
<span id="L4" class="LineNr"> 4 </span>  <span class="Constant">local-scope</span>
<span id="L5" class="LineNr"> 5 </span>  $print <span class="Constant">[aaa]</span> <span class="Constant">10/newline</span>
<span id="L6" class="LineNr"> 6 </span>  google:&amp;:<a href='075channel.mu.html#L36'>source</a>:char <span class="Special">&lt;-</span> <a href='092socket.mu.html#L69'>start-reading-from-network</a><span class="Constant"> null/real-resources,</span> <span class="Constant">[google.com/]</span>
<span id="L7" class="LineNr"> 7 </span>  $print <span class="Constant">[bbb]</span> <span class="Constant">10/newline</span>
<span id="L8" class="LineNr"> 8 </span>  n:num <span class="Special">&lt;-</span> copy<span class="Constant"> 0</span>
<span id="L9" class="LineNr"> 9 </span>  buf:&amp;:<a href='061text.mu.html#L120'>buffer</a>:char <span class="Special">&lt;-</span> <a href='061text.mu.html#L125'>new-buffer</a><span class="Constant"> 30</span>
<span id="L10" class="LineNr">10 </span>  <span class="Delimiter">{</span>
<span id="L11" class="LineNr">11 </span>    c:char, done?:bool <span class="Special">&lt;-</span> read google
<span id="L12" class="LineNr">12 </span>    <span class="muControl">break-if</span> done?
<span id="L13" class="LineNr">13 </span>    n <span class="Special">&lt;-</span> add n,<span class="Constant"> 1</span>
<span id="L14" class="LineNr">14 </span>    buf <span class="Special">&lt;-</span> append buf, c
<span id="L15" class="LineNr">15 </span>    <span class="Delimiter">{</span>
<span id="L16" class="LineNr">16 </span>      _, a:num <span class="Special">&lt;-</span> divide-with-remainder n,<span class="Constant"> 100</span>
<span id="L17" class="LineNr">17 </span>      <span class="muControl">break-if</span> a
<span id="L18" class="LineNr">18 </span>      $print n <span class="Constant">10/newline</span>
<span id="L19" class="LineNr">19 </span>    <span class="Delimiter">}</span>
<span id="L20" class="LineNr">20 </span>   <span class="muControl"> loop</span>
<span id="L21" class="LineNr">21 </span>  <span class="Delimiter">}</span>
<span id="L22" class="LineNr">22 </span>  result:text <span class="Special">&lt;-</span> <a href='061text.mu.html#L338'>buffer-to-array</a> buf
<span id="L23" class="LineNr">23 </span>  open-console
<span id="L24" class="LineNr">24 </span>  <a href='081print.mu.html#L46'>clear-screen</a><span class="Constant"> null/screen</span>  <span class="Comment"># non-scrolling app</span>
<span id="L25" class="LineNr">25 </span>  len:num <span class="Special">&lt;-</span> length *result
<span id="L26" class="LineNr">26 </span>  print<span class="Constant"> null/real-screen,</span> result
<span id="L27" class="LineNr">27 </span>  wait-for-some-interaction
<span id="L28" class="LineNr">28 </span>  close-console
<span id="L29" class="LineNr">29 </span>]
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->