title: VGA Display problem in my custom OS kernel
body: <p>I am developing an Operating System as a hobby project. I interfaced VGA display by using address 0xB8000, and number of rows are set to 25, and columns are set to 80. I have used following clear screen function : </p>
  
  <pre><code>void vga_init(void) {
  
      // Initialise the VGA variables and clear the screen : :
      vga_buffer_pointer = (uint16_t *)  VGA_MEMORY_LOCATION;
  
      //start clear using 2 pass loop : 
      uint8_t iter_i = 0;
      uint8_t iter_j = 0;
  
      for(iter_i = 0; iter_i &lt; VGA_ROWS; iter_i ++) {
  
          for(iter_j = 0; iter_j &lt; VGA_COLS; iter_j++) {
              uint8_t index  = (VGA_COLS *  iter_i) + iter_j;
  
              vga_buffer_pointer[index] = ((uint16_t)color &lt;&lt; 8) | ' ';
          }
      }
  
      enable_cursor(14,15);
  } 
  </code></pre>
  
  <p>I am initialising the screen with green color. The display occupies only a porting of the qemu terminal screen, As shown below :</p>
  
  <p><img src="https://i.ibb.co/k1ZRQbm/Screenshot-from-2019-02-03-12-18-04.png" alt="a busy cat"></p>
  
  <p>But I want, the entire terminal to be green. And the display should use the entire terminal. Any help is most appreciated. Thank you</p>
  
  <p>I have attached a gist of my code.</p>
  
  <p><a href="https://gist.github.com/Narasimha1997/fa8d3882af3ff61e77aefa5309e9a78d" rel="nofollow noreferrer">VGA.c</a></p>