TRIPOLI Aug 24 Most of our weeks in Tripoli's Rixos Hotel as "guests" of Muammar Gaddafi's government were marked by boredom and frustration.
But by the time a sniper's bullet shattered my satellite gear just after I set it up on a roof, the game had changed.
Rebel fighters swarmed into the city Saturday night, taking government officials by surprise with the speed of their assault after months of backward-and-forward combat on several fronts across Libya.
The mood in the Rixos Hotel, designated home to foreign journalists covering the conflict as best they could from the government side, turned to anxiety.
The relationship with government minders who controlled our movements had always been antagonistic.
From Saturday onwards, as gunmen kept the 35 reporters, photographers and television crew penned up in the hotel, it dawned on us that we were pretty much being held hostage and could become human shields.
Food and water ran short, power blacked out. Outside we could hear the din of battle. But we were unable to report the war we had come to cover just as it reached its denouement.
We sweated it out for five days, increasingly fearful that we might become casualties of a fit of rage by our armed guards, a sudden attack by the rebels, or loyalist sniper fire.
When officials of the International Committee of the Red Cross ran into the lobby Wednesday morning and told us to grab our gear and run, the relief and elation propelled me out through the door.
The luxury Rixos, with its pillared lobby and opulent decor, had always seemed like a gilded cage set amid the eucalyptus trees.
Even before the rebel assault, correspondents were prohibited from venturing out of the hotel on their own.
When we did leave, government minders hovered nearby during interviews and coached residents on their answers. They carted us to and from pro-Gaddafi rallies and showed us gory sites where they said NATO air strikes had killed civilians.
Gaddafi and his minions showed an absolute conviction his troops would vanquish the rebels it described as rats and traitors. Unfortunately for us, the government saw us as an extension of the Western effort to bring down "the brother leader."
They called us spies who called in coordinates for air strikes.
But their confident, if belligerent, mood changed last Saturday, when the rebels cut off Tripoli's sole link to the outside world and raced into the Mediterranean city for the final showdown.
The officials at the Rixos talked urgently into cell phones in the lobby and asked us for information from the frontlines. They still promised to fight to the death -- and they warned of an impending massacre no matter who won.
The fighting began after the Saturday evening meal and raged all night. We heard several air strikes but mostly the roar of mortar or rocket fire and automatic weapons. Tracer bullets landed on our balconies.
Sunday morning, only a few of the hotel staff could be seen. The government minders and other officials either did not show up or melted away over the course of the day.
By nightfall, the hotel was almost deserted except for the pack of journalists, a few other foreigners, four cheerful cooks -- and a handful of armed young men.
Government troops stationed outside stood at the ready to protect the hotel and fend off rebels.
FEAR AND TEDIUM
The fighting around the hotel grew more intense. The air was thick with gunfire and the floors shook from the impact of rocket-propelled grenades.
We donned flak jackets and helmets. We carried sacks stuffed with necessities -- water, satellite phones, cameras -- into a windowless room on the second floor of the hotel.
The few remaining young Libyans, Gaddafi supporters who were incensed by what they saw was our support for the rebels, brandished weapons and shouted at us angrily.
They were suspicious of our communications equipment and visibly on edge.
Over the next few days we drifted back and forth between fear and tedium. All but one of the remaining hotel staff disappeared, so we brought bread, cheese, fruit and bottled water from the hotel's kitchen.
Power and water failed for at least one full day, so we distributed electric candles that someone had found and filled empty bottles for washing from the hotel's Turkish baths.
Fighting continued around the hotel. For much of the time we were unable to make calls on our local cell phones, nor could we venture outside to use satellite phones because of the snipers.
The windows in the restaurant downstairs were shattered by a shot or shrapnel while two colleagues made tea.
A sniper's bullet hit my BGAN, the satellite transmission device, as I sat a few feet away writing emails. I dashed out of the room.
People stretched out on the floor of the hallway near our safe room, often wearing their body armor, dozing when they could. We draped a banner from the upstairs balcony that said 'press' so gunmen who might enter the hotel would know we were non-combatants.
The fear came and went that the hotel would be the scene of a showdown between Gaddafi forces and rebels.
Even as we received reports that most of Tripoli had fallen, the armed volunteers holding us there against our will were utterly convinced that the rebels would be repelled.
They were diehard Gaddafi supporters who suspected us -- cut off from the outside world as we were -- of distorting the situation to the rebels' favor.
Camaraderie saw us through the ordeal. We set up an impromptu cinema one day while we were camped out in the basement, but the screening of 'Point Break' on someone's laptop was interrupted by fighting that broke out near the hotel.
Nevertheless, spirits flagged as things wore on and we wondered when we would be freed.
On a desk in a room that had been occupied by government minders, we found printouts of private emails sent by us journalists -- apparent evidence that the correspondence had been monitored.
Wednesday morning dawned after another tense night that brought only a few hours of sleep for most of us and hours of discussions.
A bout of shouting with our armed guards in the lobby ended suddenly when the ICRC team rushed in the door and to our rescue. We didn't wait to settle the bill.
(Writing by Missy Ryan and Angus MacSwan, editing by Peter Millership)